summaryrefslogtreecommitdiff
path: root/package/wprobe/src/user
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-07-07 02:22:46 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-07-07 02:22:46 +0000
commit5a5f24ac230a0cc8b885858134c1c219b77954f8 (patch)
treeded7a80db667a1ccedcca9076bde24105e2e8978 /package/wprobe/src/user
parent05672efde88459824d446feade3f0f824b9e535a (diff)
downloadmtk-20170518-5a5f24ac230a0cc8b885858134c1c219b77954f8.zip
mtk-20170518-5a5f24ac230a0cc8b885858134c1c219b77954f8.tar.gz
mtk-20170518-5a5f24ac230a0cc8b885858134c1c219b77954f8.tar.bz2
fix wprobe-export
SVN-Revision: 16727
Diffstat (limited to 'package/wprobe/src/user')
-rw-r--r--package/wprobe/src/user/wprobe-lib.c3
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 a3b0fb5..a1a52f2 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
}