bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v2 1/4] ftpfs/host.c: use NULL (instead of 0) for pointers


From: Jonathan Neuschäfer
Subject: [PATCH v2 1/4] ftpfs/host.c: use NULL (instead of 0) for pointers
Date: Mon, 15 Aug 2011 22:10:06 +0200

 * ftpfs/host.c (split_server_name): assign NULL to *host, *user, and
   *passwd instead of 0.
---
 ftpfs/host.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ftpfs/host.c b/ftpfs/host.c
index cd6fd4c..71cf6c8 100644
--- a/ftpfs/host.c
+++ b/ftpfs/host.c
@@ -32,9 +32,9 @@ split_server_name (const char *server, char **host, char 
**user, char **passwd)
   size_t plim;
   const char *p = server, *sep;
 
-  *host = 0;
-  *user = 0;
-  *passwd = 0;
+  *host = NULL;
+  *user = NULL;
+  *passwd = NULL;
 
   /* Extract the hostname; syntax is either `HOST:...', address@hidden', or 
just
      HOST if there are no user parameters specified.  */
-- 
1.7.5.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]