changeset 4776:894e353aaeca libavformat

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.
author rbultje
date Sat, 21 Mar 2009 20:58:41 +0000
parents 57e9cd4ff7b5
children 31678a2764ee
files rtsp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rtsp.c	Sat Mar 21 20:56:57 2009 +0000
+++ b/rtsp.c	Sat Mar 21 20:58:41 2009 +0000
@@ -174,7 +174,7 @@
     v = 1;
     for(;;) {
         skip_spaces(&p);
-        if (p == '\0')
+        if (*p == '\0')
             break;
         c = toupper((unsigned char)*p++);
         if (c >= '0' && c <= '9')