Commit 7c30c9ef authored by rbultje's avatar rbultje

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.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18125 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b3d21b38
...@@ -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