Bugfix: possible dereference of NULL pointer
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -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; | ... | ... |
-
Please register or sign in to post a comment