forked from Mirrors/freeswitch
fixes for VS2010 code analysis - hope these are OK else-ware
This commit is contained in:
parent
bedf8327b6
commit
e6ac87f5f1
|
@ -825,10 +825,12 @@ ESL_DECLARE(esl_status_t) esl_event_serialize(esl_event_t *event, char **str, es
|
|||
|
||||
if ((len + llen) > dlen) {
|
||||
char *m;
|
||||
char *old = buf;
|
||||
dlen += (blocksize + (len + llen));
|
||||
if ((m = realloc(buf, dlen))) {
|
||||
buf = m;
|
||||
} else {
|
||||
buf = old;
|
||||
abort();
|
||||
}
|
||||
}
|
||||
|
@ -852,10 +854,12 @@ ESL_DECLARE(esl_status_t) esl_event_serialize(esl_event_t *event, char **str, es
|
|||
|
||||
if ((len + llen) > dlen) {
|
||||
char *m;
|
||||
char *old = buf;
|
||||
dlen += (blocksize + (len + llen));
|
||||
if ((m = realloc(buf, dlen))) {
|
||||
buf = m;
|
||||
} else {
|
||||
buf = old;
|
||||
abort();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -414,6 +414,11 @@ TELETONE_API(int) teletone_run(teletone_generation_session_t *ts, const char *cm
|
|||
*e++ = '\0';
|
||||
}
|
||||
do {
|
||||
#if (_MSC_VER == 1600)
|
||||
if (!p) {
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
if ((next = strchr(p, ',')) != 0) {
|
||||
*next++ = '\0';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue