all repos — st @ fa19f241a34deddf6e089ab462cbd9cb02f61b3d

st (suckless terminal) config

Make xrealloc and xstrdup style consistent.
noname noname@inventati.org
commit

fa19f241a34deddf6e089ab462cbd9cb02f61b3d

parent

df1810dd8fcb7a14f4cd2ff2ec3ce8780591f87f

1 files changed, 2 insertions(+), 4 deletions(-)

jump to
M st.cst.c

@@ -549,12 +549,10 @@ }

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