Commit 9b61ca1c authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

wpp: Manage malloc failure in pp_xstrdup.

parent 026ca4cd
......@@ -110,6 +110,8 @@ char *pp_xstrdup(const char *str)
assert(str != NULL);
len = strlen(str)+1;
s = pp_xmalloc(len);
if(!s)
return NULL;
return memcpy(s, str, len);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment