mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-09-20 05:16:38 +00:00
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:
parent
64917dd3df
commit
6a8c8b36b9
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user