Add tests to make check
[babeltrace.git] / converter / babeltrace.c
index b24d0102fba72a7428be2f642ab22082ec687caf..d3fa02acf26cc7148e0e671d031aa927ea34dc8f 100644 (file)
@@ -459,7 +459,6 @@ int bt_context_add_traces_recursive(struct bt_context *ctx, const char *path,
 
        GArray *trace_ids;
        int ret = 0;
-       int i;
 
        /* Should lock traversed_paths mutex here if used in multithread */
 
@@ -470,6 +469,8 @@ int bt_context_add_traces_recursive(struct bt_context *ctx, const char *path,
 
        /* Process the array if ntfw did not return a fatal error */
        if (ret >= 0) {
+               int i;
+
                for (i = 0; i < traversed_paths->len; i++) {
                        GString *trace_path = g_ptr_array_index(traversed_paths,
                                                                i);
This page took 0.024056 seconds and 4 git commands to generate.