X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/8f7f273fa4ce32e983f4437a7efa89d75062a2f9..c18a2411a73370abd0efaf5c078a3fe7ea565eaf:/package/wprobe/src/user/wprobe-lib.c diff --git a/package/wprobe/src/user/wprobe-lib.c b/package/wprobe/src/user/wprobe-lib.c index a3b0fb5e5..a1a52f205 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 }