If [KEY VALUE] is missing the VALUE, just set it to "" instead of NULL.
Found by Coverity
*value_r = value + 1;
} else {
*key_r = text;
- *value_r = NULL;
+ *value_r = "";
}
return imapc_connection_handle_resp_text_code(conn, *key_r, *value_r);
}
{
uint32_t uid_validity;
- if (mbox == NULL || reply->resp_text_value == NULL ||
+ if (mbox == NULL ||
str_to_uint32(reply->resp_text_value, &uid_validity) < 0)
return;
{
uint32_t uid_next;
- if (mbox == NULL || reply->resp_text_value == NULL ||
+ if (mbox == NULL ||
str_to_uint32(reply->resp_text_value, &uid_next) < 0)
return;