From 559252258781ed2f0eecd34d16a7b84ec52c0e21 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Thu, 30 Dec 2010 15:43:42 +0000 Subject: Adhere to nil idiom. --- fitz/base_string.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fitz/base_string.c') diff --git a/fitz/base_string.c b/fitz/base_string.c index 4b1553ad..30d544d5 100644 --- a/fitz/base_string.c +++ b/fitz/base_string.c @@ -11,8 +11,8 @@ char * fz_strsep(char **stringp, const char *delim) { char *ret = *stringp; - if (ret == NULL) return NULL; - if ((*stringp = strpbrk(*stringp, delim)) != NULL) + if (ret == nil) return nil; + if ((*stringp = strpbrk(*stringp, delim)) != nil) *((*stringp)++) = '\0'; return ret; } -- cgit v1.2.3