Fix: Ensure the specified input format is CTF
[babeltrace.git] / converter / babeltrace.c
index ed19fa85a5b0fd59baa958be6f5eb3a8ef45d096..83f300c5d9b2fa7635614fa477b173621f6a68b2 100644 (file)
@@ -606,7 +606,7 @@ int main(int argc, char **argv)
                }
        }
        fmt_read = bt_lookup_format(g_quark_from_static_string(opt_input_format));
-       if (!fmt_read) {
+       if (!fmt_read || fmt_read->name != g_quark_from_static_string("ctf")) {
                fprintf(stderr, "[error] Format \"%s\" is not supported.\n\n",
                        opt_input_format);
                partial_error = 1;
This page took 0.022037 seconds and 4 git commands to generate.