tests: Make test_per_application_leaks more robust
[lttng-tools.git] / src / common / ini-config / ini-config.cpp
index a9b65960b591081bd29e3bf333927c3b5b3f5559..ebfe153c276c593870df422ea5ea0c9ed6cad81a 100644 (file)
@@ -46,7 +46,7 @@ static int config_entry_handler_filter(struct handler_filter_args *args,
        }
 
        if (args->section) {
-               if (strcmp(args->section, section)) {
+               if (strcmp(args->section, section) != 0) {
                        goto end;
                }
        }
@@ -63,7 +63,7 @@ int config_get_section_entries(const char *override_path,
 {
        int ret = 0;
        const char *path;
-       FILE *config_file = NULL;
+       FILE *config_file = nullptr;
        struct handler_filter_args filter = { section, handler, user_data };
 
        /* First, try system-wide conf. file. */
This page took 0.023847 seconds and 4 git commands to generate.