diff --git a/panels/info/info-cleanup.c b/panels/info/info-cleanup.c index 20243ecfb..bb47493aa 100644 --- a/panels/info/info-cleanup.c +++ b/panels/info/info-cleanup.c @@ -99,6 +99,9 @@ remove_duplicate_whitespace (const char *old) GRegex *re; GError *error; + if (old == NULL) + return NULL; + error = NULL; re = g_regex_new ("[ \t\n\r]+", G_REGEX_MULTILINE, 0, &error); if (re == NULL)