aboutsummaryrefslogtreecommitdiffstats
path: root/set.c
diff options
context:
space:
mode:
Diffstat (limited to 'set.c')
-rw-r--r--set.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/set.c b/set.c
index 6a45fd14..d172a79f 100644
--- a/set.c
+++ b/set.c
@@ -174,6 +174,10 @@ char *set_eval_int( set_t *set, char *value )
{
char *s;
+ /* Allow a minus at the first position. */
+ if( *s == '-' )
+ s ++;
+
for( s = value; *s; s ++ )
if( !isdigit( *s ) )
return NULL;