Fix: argpar.c: logically dead code
[babeltrace.git] / src / argpar / argpar.c
index fe78a008a5eebba4c8dc9cae982d64a0b25858c6..d3451207f548127ad34f41dbc77fd8b934fc398e 100644 (file)
@@ -64,7 +64,7 @@ struct bt_argpar_item_opt *create_opt_item(
 
        if (arg) {
                opt_item->arg = g_strdup(arg);
-               if (!opt_item) {
+               if (!opt_item->arg) {
                        goto error;
                }
        }
This page took 0.023072 seconds and 4 git commands to generate.