Fix missing null pointer check
authorColin Leroy <colin@colino.net>
Fri, 17 Jul 2015 06:51:36 +0000 (08:51 +0200)
committerColin Leroy <colin@colino.net>
Fri, 17 Jul 2015 06:51:36 +0000 (08:51 +0200)
src/plugins/managesieve/managesieve.c

index 9170c05df27323460eb8b2b93bdea16e7e2fefd8..773fa7a81b5edbad107e33d9fca37d756c8c7c3b 100644 (file)
@@ -469,6 +469,8 @@ static void parse_response(gchar *msg, SieveResult *result)
 {
        gchar *end;
 
 {
        gchar *end;
 
+       cm_return_if_fail(msg != NULL);
+
        /* response status */
        if (isalpha(msg[0])) {
                end = strchr(msg, ' ');
        /* response status */
        if (isalpha(msg[0])) {
                end = strchr(msg, ' ');