patch-wmgeneral_misc_c 354 B

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