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 9170c05..773fa7a 100644 (file)
@@ -469,6 +469,8 @@ static void parse_response(gchar *msg, SieveResult *result)
 {
        gchar *end;
 
+       cm_return_if_fail(msg != NULL);
+
        /* response status */
        if (isalpha(msg[0])) {
                end = strchr(msg, ' ');