Commit 7040e703 7040e70383e8438e616eeff447aebea21975e376 by Sergey Poznyakoff

Bugfix: possible dereference of NULL pointer

1 parent 1f024db3
...@@ -55,7 +55,7 @@ mail_set (int argc, char **argv) ...@@ -55,7 +55,7 @@ mail_set (int argc, char **argv)
55 if (entry == NULL) 55 if (entry == NULL)
56 return 1; 56 return 1;
57 i += 2; 57 i += 2;
58 if (i > argc) 58 if (i >= argc)
59 break; 59 break;
60 value = strdup (argv[i]); 60 value = strdup (argv[i]);
61 entry->set = 1; 61 entry->set = 1;
......