Return empty string, not NULL

This commit is contained in:
Philip Heron 2012-02-25 20:15:25 +00:00
parent 6ab1f0686d
commit 4be6245766
1 changed files with 1 additions and 1 deletions

2
ssdv.c
View File

@ -182,7 +182,7 @@ static char *decode_callsign(char *callsign, uint32_t code)
*callsign = '\0'; *callsign = '\0';
/* Is callsign valid? */ /* Is callsign valid? */
if(code > 0xF423FFFF) return(0); if(code > 0xF423FFFF) return(callsign);
for(c = callsign; code; c++) for(c = callsign; code; c++)
{ {