rtspsrc: remove duplicate test

item was dereference previously.

While there, reorder some test for faster early out.

Coverity 1139844
This commit is contained in:
Vincent Penquerc'h 2014-05-02 14:06:25 +01:00
parent a6e7948711
commit a846e84349

View file

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