openbsd-ports/sysutils/wmmon/patches/patch-wmgeneral_misc_c

13 lines
354 B
Plaintext
Raw Normal View History

$OpenBSD: patch-wmgeneral_misc_c,v 1.1.1.1 2000/11/18 13:53:32 naddy Exp $
--- wmgeneral/misc.c.orig Tue May 19 23:13:23 1998
+++ wmgeneral/misc.c Tue Oct 10 21:59:35 2000
@@ -64,6 +64,8 @@ next_token(char *word, char **next)
t = ret = malloc(strlen(word)+1);
ptr = word;
+
+ if (ret==NULL) return NULL;
state = 0;
*t = 0;