static void parse_event_report_folder(struct map_event *event,
const char *value)
{
- if (!value)
- return;
-
g_free(event->folder);
if (g_str_has_prefix(value, "/"))
static void parse_event_report_old_folder(struct map_event *event,
const char *value)
{
- if (!value)
- return;
-
g_free(event->old_folder);
if (g_str_has_prefix(value, "/"))
static void parse_event_report_msg_type(struct map_event *event,
const char *value)
{
- if (!value)
- return;
-
g_free(event->msg_type);
event->msg_type = g_strdup(value);
}
for (parser = event_report_parsers; parser && parser->name;
parser++) {
if (strcasecmp(key, parser->name) == 0) {
- parser->func(event, values[i]);
+ if (values[i])
+ parser->func(event, values[i]);
break;
}
}