aboutsummaryrefslogtreecommitdiff
path: root/src/librc-strlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/librc-strlist.c')
-rw-r--r--src/librc-strlist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librc-strlist.c b/src/librc-strlist.c
index 981f654b..126ec78e 100644
--- a/src/librc-strlist.c
+++ b/src/librc-strlist.c
@@ -49,7 +49,7 @@ static char **_rc_strlist_addsort (char **list, const char *item,
newlist = rc_xrealloc (list, sizeof (char *) * (i + 2));
- if (i == 0)
+ if (! i)
newlist[i] = NULL;
newlist[i + 1] = NULL;
@@ -88,7 +88,7 @@ char **rc_strlist_delete (char **list, const char *item)
return (list);
while (list[i])
- if (strcmp (list[i], item) == 0)
+ if (! strcmp (list[i], item))
{
free (list[i]);
do