[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] replace several 0's with NULL's for pointer assignments
From: |
William Hubbs |
Subject: |
[PATCH] replace several 0's with NULL's for pointer assignments |
Date: |
Tue, 29 Mar 2011 08:44:13 -0500 |
I have never felt comfortable using 0 for NULL. I don't know that they
are always the same.
---
src/server/module.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/server/module.c b/src/server/module.c
index a0e122e..31d8e58 100644
--- a/src/server/module.c
+++ b/src/server/module.c
@@ -124,7 +124,7 @@ OutputModule *load_output_module(char *mod_name, char
*mod_prog,
{
OutputModule *module;
int fr;
- char *argv[3] = {0, 0, 0};
+ char *argv[3] = {NULL, NULL, NULL};
int ret;
char *module_conf_dir;
char *rep_line = NULL;
--
1.7.3.4
- [PATCH] replace several 0's with NULL's for pointer assignments,
William Hubbs <=