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

@ -6,6 +6,9 @@ v0.81.4 23-Oct-2005
libmbse.a:
Added some forgotten client/server encoding.
mbtask:
Fixed crashing mbtask on receiving empty coded loglines.
v0.81.3 17-Oct-2005 - 23-Oct-2005

View File

@ -559,8 +559,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++) {

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++) {