Pass unitsize to srd_session_send() directly.
[sigrok-cli.git] / parsers.c
index d788532f17097915511383851066141a999b7007..333e6e49053e24c0555e2443d75b9a748ca4b63d 100644 (file)
--- a/parsers.c
+++ b/parsers.c
@@ -408,6 +408,9 @@ int parse_driver(char *arg, struct sr_dev_driver **driver, GSList **drvopts)
        int i;
        char *drvname;
 
+       if (!arg)
+               return FALSE;
+
        drvargs = parse_generic_arg(arg, TRUE);
 
        drvname = g_strdup(g_hash_table_lookup(drvargs, "sigrok_key"));