Port: Remove unused header pwd.h
[babeltrace.git] / cli / babeltrace-cfg-cli-args.c
index 6a711726dd03b43bd9191e59ecebcc376863b565..e2608748b6e6381e8210acf132553dad25906566 100644 (file)
@@ -35,7 +35,6 @@
 #include <popt.h>
 #include <glib.h>
 #include <sys/types.h>
-#include <pwd.h>
 #include "babeltrace-cfg.h"
 #include "babeltrace-cfg-cli-args.h"
 #include "babeltrace-cfg-cli-args-connect.h"
@@ -4703,6 +4702,12 @@ struct bt_config *bt_config_convert_from_args(int argc, const char *argv[],
        cfg = bt_config_run_from_args_array(run_args, retcode,
                force_omit_system_plugin_path, force_omit_home_plugin_path,
                initial_plugin_paths);
+       if (!cfg) {
+               goto error;
+       }
+
+       cfg->debug = got_debug_opt;
+       cfg->verbose = got_verbose_opt;
        goto end;
 
 error:
This page took 0.032143 seconds and 4 git commands to generate.