girparser: Avoid a crash with an unset transfer annotation

Spotted by Coverity.

https://bugzilla.gnome.org/show_bug.cgi?id=752549
This commit is contained in:
Colin Walters 2015-10-04 12:00:23 -04:00
parent 3d2f1c2cd3
commit 714414f0af

View File

@ -1066,9 +1066,9 @@ start_instance_parameter (GMarkupParseContext *context,
state_switch (ctx, STATE_PASSTHROUGH);
if (strcmp (transfer, "full") == 0)
if (g_strcmp0 (transfer, "full") == 0)
transfer_full = TRUE;
else if (strcmp (transfer, "none") == 0)
else if (g_strcmp0 (transfer, "none") == 0)
transfer_full = FALSE;
else
{