From 6a8c8b36b9f9a87daa02140c006f55f1a795294e Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Sat, 21 Mar 2009 20:58:41 +0000 Subject: Fix silly bug in hex_to_data() where it compares a string pointer for whether it is '\0' rather than its content (char *p; if (p == '\0') instead of if (*p == '\0')). See summary in "[PATCH] rtsp.c small cleanups" thread on mailinglist. Originally committed as revision 18125 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/rtsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat') diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 406998dc07..47378146fe 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -174,7 +174,7 @@ static int hex_to_data(uint8_t *data, const char *p) v = 1; for(;;) { skip_spaces(&p); - if (p == '\0') + if (*p == '\0') break; c = toupper((unsigned char)*p++); if (c >= '0' && c <= '9') -- cgit v1.2.3