Fixed crashing mbtask on receiving empty coded loglines
This commit is contained in:
parent
26dbee01a5
commit
eafb6260c1
@ -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
|
||||
|
||||
|
@ -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++) {
|
||||
|
@ -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++) {
|
||||
|
Reference in New Issue
Block a user