Permalink
Browse files

rtspsrc: avoid NULL string comparison

  • Loading branch information...
1 parent eff88a2 commit 018852ddc2638e464bf4d7158535c56610f039aa Mark Nauwelaerts committed Jan 20, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 gst/rtsp/gstrtspsrc.c
View
3 gst/rtsp/gstrtspsrc.c
@@ -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);

0 comments on commit 018852d

Please sign in to comment.