rtspsrc: avoid NULL string comparison

This commit is contained in:
Mark Nauwelaerts 2012-01-20 17:03:50 +01:00
parent eff88a239f
commit 018852ddc2

View file

@ -4331,7 +4331,8 @@ gst_rtspsrc_parse_digest_challenge (GstRTSPConnection * conn,
} else
value = NULL;
if ((strcmp (item, "stale") == 0) && (strcmp (value, "TRUE") == 0))
if (item && (strcmp (item, "stale") == 0) &&
value && (strcmp (value, "TRUE") == 0))
*stale = TRUE;
gst_rtsp_connection_set_auth_param (conn, item, value);
g_free (item);