# HG changeset patch # User rbultje # Date 1237669121 0 # Node ID 894e353aaecaf6b69b7275dd64e3d9c0d4a67604 # Parent 57e9cd4ff7b59caa0f5861b1e3d1f0738835fe4b 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. diff -r 57e9cd4ff7b5 -r 894e353aaeca rtsp.c --- 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')