Fix: tests: uninitialized lttng_payload
[lttng-tools.git] / tests / unit / test_event_rule.cpp
index 0fc9ec7702a44724339e5a530d19af5f71de52ae..d0e33a1f8d1a11db7de06cc4e9409cfbc35ab581 100644 (file)
@@ -459,6 +459,7 @@ static void test_event_rule_userspace_probe(void)
        struct lttng_payload payload;
 
        diag("Event rule uprobe.");
+       lttng_payload_init(&payload);
 
        lookup_method = lttng_userspace_probe_location_lookup_method_function_elf_create();
        if (!lookup_method) {
@@ -811,7 +812,7 @@ static void test_event_rule_log_level_python(void)
                        NULL, 0);
 }
 
-int main(int argc, const char *argv[])
+int main(void)
 {
        plan_tests(NUM_TESTS);
        test_event_rule_kernel_tracepoint();
This page took 0.023146 seconds and 4 git commands to generate.