aboutsummaryrefslogtreecommitdiffstats
path: root/set.c
diff options
context:
space:
mode:
Diffstat (limited to 'set.c')
-rw-r--r--set.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/set.c b/set.c
index d172a79f..8d872503 100644
--- a/set.c
+++ b/set.c
@@ -172,13 +172,13 @@ void set_del( set_t **head, char *key )
char *set_eval_int( set_t *set, char *value )
{
- char *s;
+ char *s = value;
/* Allow a minus at the first position. */
if( *s == '-' )
s ++;
- for( s = value; *s; s ++ )
+ for( ; *s; s ++ )
if( !isdigit( *s ) )
return NULL;