summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authordjm <djm>2010-06-25 23:30:47 +0000
committerdjm <djm>2010-06-25 23:30:47 +0000
commit3474479a7041836e14de039cd6599715c121ba7b (patch)
tree6c840bb023c1e30d0465aaa040e6df3a354fc6cc /misc.c
parent57f885309bde20cda8d986403b23e60eeaee8b7e (diff)
downloadopenssh-3474479a7041836e14de039cd6599715c121ba7b.tar.gz
- OpenBSD CVS Sync
- djm@cvs.openbsd.org 2010/05/21 05:00:36 [misc.c] colon() returns char*, so s/return (0)/return NULL/
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/misc.c b/misc.c
index e1f72312..b19ece83 100644
--- a/misc.c
+++ b/misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.c,v 1.75 2010/01/09 23:04:13 dtucker Exp $ */
+/* $OpenBSD: misc.c,v 1.76 2010/05/21 05:00:36 djm Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
* Copyright (c) 2005,2006 Damien Miller. All rights reserved.
@@ -425,7 +425,7 @@ colon(char *cp)
int flag = 0;
if (*cp == ':') /* Leading colon is part of file name. */
- return (0);
+ return NULL;
if (*cp == '[')
flag = 1;
@@ -437,9 +437,9 @@ colon(char *cp)
if (*cp == ':' && !flag)
return (cp);
if (*cp == '/')
- return (0);
+ return NULL;
}
- return (0);
+ return NULL;
}
/* function to assist building execv() arguments */