mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-08 11:53:00 -04:00
Change an OOM err to a warn in event_tagging.c
svn:r1524
This commit is contained in:
parent
26573d3de3
commit
cdf58009fc
@ -546,8 +546,10 @@ evtag_unmarshal_string(struct evbuffer *evbuf, ev_uint32_t need_tag,
|
||||
return (-1);
|
||||
|
||||
*pstring = mm_malloc(tag_len + 1);
|
||||
if (*pstring == NULL)
|
||||
event_err(1, "%s: malloc", __func__);
|
||||
if (*pstring == NULL) {
|
||||
event_warn("%s: malloc", __func__);
|
||||
return -1;
|
||||
}
|
||||
evbuffer_remove(evbuf, *pstring, tag_len);
|
||||
(*pstring)[tag_len] = '\0';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user