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:
|
libmbse.a:
|
||||||
Added some forgotten client/server encoding.
|
Added some forgotten client/server encoding.
|
||||||
|
|
||||||
|
mbtask:
|
||||||
|
Fixed crashing mbtask on receiving empty coded loglines.
|
||||||
|
|
||||||
|
|
||||||
v0.81.3 17-Oct-2005 - 23-Oct-2005
|
v0.81.3 17-Oct-2005 - 23-Oct-2005
|
||||||
|
|
||||||
|
@ -559,8 +559,8 @@ char *cldecode(char *s)
|
|||||||
char *p, *q;
|
char *p, *q;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (s == NULL) {
|
if ((s == NULL) || (! strlen(s))) {
|
||||||
return NULL;
|
return (char *)"";
|
||||||
}
|
}
|
||||||
|
|
||||||
for (p = s, q = s; *p; p++) {
|
for (p = s, q = s; *p; p++) {
|
||||||
|
@ -667,8 +667,8 @@ char *cldecode(char *s)
|
|||||||
char *p, *q;
|
char *p, *q;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (s == NULL) {
|
if ((s == NULL) || (! strlen(s))) {
|
||||||
return NULL;
|
return (char *)"";
|
||||||
}
|
}
|
||||||
|
|
||||||
for (p = s, q = s; *p; p++) {
|
for (p = s, q = s; *p; p++) {
|
||||||
|
Reference in New Issue
Block a user