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
This commit is contained in:
Ronald S. Bultje 2009-03-21 20:58:41 +00:00
parent 64917dd3df
commit 6a8c8b36b9
1 changed files with 1 additions and 1 deletions

View File

@ -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')