Silence a compiler warning

Even though we are confident the filename will always
end in .gmarkup, the compiler doesn't know that...
This commit is contained in:
Matthias Clasen 2011-06-14 10:16:35 -04:00
parent 6ac8e6108c
commit 25a797fa25

View File

@ -216,7 +216,8 @@ get_expected_filename (const gchar *filename)
f = g_strdup (filename);
p = strstr (f, ".gmarkup");
*p = 0;
if (p)
*p = 0;
expected = g_strconcat (f, ".expected", NULL);
g_free (f);