Commit 6a8c8b36 authored by Ronald S. Bultje's avatar Ronald S. Bultje

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
parent 64917dd3
...@@ -174,7 +174,7 @@ static int hex_to_data(uint8_t *data, const char *p) ...@@ -174,7 +174,7 @@ static int hex_to_data(uint8_t *data, const char *p)
v = 1; v = 1;
for(;;) { for(;;) {
skip_spaces(&p); skip_spaces(&p);
if (p == '\0') if (*p == '\0')
break; break;
c = toupper((unsigned char)*p++); c = toupper((unsigned char)*p++);
if (c >= '0' && c <= '9') if (c >= '0' && c <= '9')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment