X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/8f7f273fa4ce32e983f4437a7efa89d75062a2f9..24168b91595c0c5a9420c348c4c16e727e1aaa81:/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..7ba67cfcb 100644 --- a/package/wprobe/src/user/wprobe-lib.c +++ b/package/wprobe/src/user/wprobe-lib.c @@ -13,6 +13,8 @@ * GNU General Public License for more details. */ +#define _ISOC99_SOURCE +#define _BSD_SOURCE #include #include #include @@ -795,7 +797,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 }