commit | 620443a95a3fa0224f244102be0480942fbbcd8a | [log] [tgz] |
---|---|---|
author | Bart De Schuymer <bdschuym@pandora.be> | Sun Nov 14 13:22:29 2004 +0000 |
committer | Bart De Schuymer <bdschuym@pandora.be> | Sun Nov 14 13:22:29 2004 +0000 |
tree | 7b8b7f83a75df9165e9a06a01017978d228c09a2 | |
parent | 9557dce22c6faa7f8ecb1f7723e66a9f307ce2d4 [diff] [blame] |
prevent segfault
diff --git a/useful_functions.c b/useful_functions.c index e0b1e4c..a36062e 100644 --- a/useful_functions.c +++ b/useful_functions.c
@@ -151,6 +151,8 @@ */ int ebt_check_inverse(const char option[]) { + if (!option) + return ebt_invert; if (strcmp(option, "!") == 0) { if (ebt_invert == 1) ebt_print_error("double use of '!' not allowed");