mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 22:46:15 +01:00
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:
parent
3d2f1c2cd3
commit
714414f0af
@ -1066,9 +1066,9 @@ start_instance_parameter (GMarkupParseContext *context,
|
|||||||
|
|
||||||
state_switch (ctx, STATE_PASSTHROUGH);
|
state_switch (ctx, STATE_PASSTHROUGH);
|
||||||
|
|
||||||
if (strcmp (transfer, "full") == 0)
|
if (g_strcmp0 (transfer, "full") == 0)
|
||||||
transfer_full = TRUE;
|
transfer_full = TRUE;
|
||||||
else if (strcmp (transfer, "none") == 0)
|
else if (g_strcmp0 (transfer, "none") == 0)
|
||||||
transfer_full = FALSE;
|
transfer_full = FALSE;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user