Make xrealloc and xstrdup style consistent.

This commit is contained in:
noname 2014-04-22 21:59:48 +04:00 committed by Roberto E. Vargas Caballero
parent df1810dd8f
commit fa19f241a3

6
st.c
View file

@ -549,12 +549,10 @@ xrealloc(void *p, size_t len) {
char *
xstrdup(char *s) {
char *p = strdup(s);
if (!p)
if((s = strdup(s)) == NULL)
die("Out of memory\n");
return p;
return s;
}
size_t