mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
rtspsrc: avoid NULL string comparison
This commit is contained in:
parent
eff88a239f
commit
018852ddc2
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue