Commit 5675dec6 authored by Chris T's avatar Chris T

Fix segfault if there is no date string.

parent 2c3ef7dd
......@@ -1342,7 +1342,11 @@ static gboolean load_message_from_store(const char *service_id,
read_status = g_key_file_get_boolean(meta, "info", "read", NULL);
datestr = g_key_file_get_string(meta, "info", "date", NULL);
strptime(datestr, "%Y-%m-%dT%H:%M:%S%z", &tm);
if (datestr != NULL) {
strptime(datestr, "%Y-%m-%dT%H:%M:%S%z", &tm);
} else {
mms_error("service.c(): There is no date stamp!");
}
data_path = mms_store_get_path(service_id, uuid);
if (data_path == NULL)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment