Fixed crashing mbtask on receiving empty coded loglines

This commit is contained in:
Michiel Broek
2005-10-25 19:12:29 +00:00
parent 26dbee01a5
commit eafb6260c1
3 changed files with 7 additions and 4 deletions

View File

@@ -667,8 +667,8 @@ char *cldecode(char *s)
char *p, *q;
int i;
if (s == NULL) {
return NULL;
if ((s == NULL) || (! strlen(s))) {
return (char *)"";
}
for (p = s, q = s; *p; p++) {