summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2010-06-26 09:30:47 +1000
committerDamien Miller <djm@mindrot.org>2010-06-26 09:30:47 +1000
commit2e77446a13b0fd09c94c1a3d088b7d7e7e479fd3 (patch)
treefae84be9ee60b24a888e14dc1f29c80fa4676ac4 /misc.c
parentd82a260fdff795ddf2f7f49ea22901b7c2aad9c5 (diff)
downloadopenssh-git-2e77446a13b0fd09c94c1a3d088b7d7e7e479fd3.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 */