summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-12-10 13:43:12 -0800
committerJeremy Allison <jra@samba.org>2007-12-10 13:43:12 -0800
commit29c104fd60081756d734e21aeb4b865951e06948 (patch)
treefe3b8a2b14685ed8ec6edd9788609880f56802dd /source3
parentff1a79f24bd0dcc69f7f38b13d6780255174a2b6 (diff)
downloadsamba-29c104fd60081756d734e21aeb4b865951e06948.tar.gz
samba-29c104fd60081756d734e21aeb4b865951e06948.tar.bz2
samba-29c104fd60081756d734e21aeb4b865951e06948.zip
Fix bug leftover from pstring conversion noticed by ceez
on irc. Jeremy. (This used to be commit 70950b419a57465c38bb36722644b95b1d14f76d)
Diffstat (limited to 'source3')
-rw-r--r--source3/printing/print_aix.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/printing/print_aix.c b/source3/printing/print_aix.c
index bb125530df..fd85ca0833 100644
--- a/source3/printing/print_aix.c
+++ b/source3/printing/print_aix.c
@@ -32,15 +32,13 @@ bool aix_cache_reload(void)
int iEtat;
XFILE *pfile;
char *line = NULL, *p;
- char *name;
+ char *name = NULL;
TALLOC_CTX *ctx = talloc_init("aix_cache_reload");
if (!ctx) {
return false;
}
- *name = 0;
-
DEBUG(5, ("reloading aix printcap cache\n"));
if ((pfile = x_fopen(lp_printcapname(), O_RDONLY, 0)) == NULL) {