diff options
Diffstat (limited to 'package/wprobe/src/user')
-rw-r--r-- | package/wprobe/src/user/wprobe-lib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/package/wprobe/src/user/wprobe-lib.c b/package/wprobe/src/user/wprobe-lib.c index a3b0fb5e5e..a1a52f2054 100644 --- a/package/wprobe/src/user/wprobe-lib.c +++ b/package/wprobe/src/user/wprobe-lib.c @@ -795,7 +795,8 @@ wprobe_get_auto(const char *arg, char **err) free(devstr); return wprobe_get_dev(arg); #else - *err = "Invalid argument"; + if (err) + *err = "Invalid argument"; goto out; #endif } |