diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libzpool/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libzpool/util.c b/lib/libzpool/util.c index 3bdc31722..8e1c104a3 100644 --- a/lib/libzpool/util.c +++ b/lib/libzpool/util.c @@ -182,7 +182,7 @@ set_global_var(char *arg) "little-endian systems\n"); return (ENOTSUP); #endif - if ((varval = strchr(arg, '=')) != NULL) { + if (arg != NULL && (varval = strchr(arg, '=')) != NULL) { *varval = '\0'; varval++; val = strtoull(varval, NULL, 0); |