Fix: add missing packed attribute to comm. struct.
[lttng-tools.git] / src / common / config / config.c
index b8a32e6e1f803218e0ba1f0aea10668d865a7dde..829a645bbb18820b2ad1237574a9fe229596b6cd 100644 (file)
@@ -238,6 +238,7 @@ int config_get_section_entries(const char *override_path, const char *section,
        ret = ini_parse_file(config_file,
                        (ini_entry_handler) config_entry_handler_filter, (void *) &filter);
 
+       fclose(config_file);
 end:
        return ret;
 }
@@ -2436,7 +2437,7 @@ int load_session_from_path(const char *path, const char *session_name,
                                continue;
                        }
 
-                       if (path_len + file_name_len > PATH_MAX) {
+                       if (path_len + file_name_len >= PATH_MAX) {
                                continue;
                        }
 
This page took 0.023443 seconds and 4 git commands to generate.