From c23ed625b22bfc765ba95cb7b8addf55625fea44 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 7 Jan 1998 06:21:56 +0000 Subject: includes.h: Added FreeBSD 3.x fixes. Added HPUX10.x fixes. interface.c: Added netmask fix. nmbd_nameregister.c: Fixed unitialised variable warnings. nmbd_winsproxy.c: Fixed unitialised variable warnings. nmbd_winsserver.c: Fixed DEC warnings. print_svid.c: Fixed DEC warnings. printing.c: Added LPRng fixes. Jeremy. (This used to be commit 28aff043c4a3693a0c20e87c7ce11eb4bf285b78) --- source3/printing/print_svid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/printing/print_svid.c') diff --git a/source3/printing/print_svid.c b/source3/printing/print_svid.c index 5b98036e08..bf48954ec2 100644 --- a/source3/printing/print_svid.c +++ b/source3/printing/print_svid.c @@ -64,11 +64,11 @@ static void populate_printers() /* truncate the ": ..." */ if ((tmp = strchr(name, ':')) != NULL) - *tmp = NULL; + *tmp = '\0'; /* add it to the cache */ if ((ptmp = malloc(sizeof (*ptmp))) != NULL) { - memset(ptmp, NULL, sizeof (*ptmp)); + memset(ptmp, '\0', sizeof (*ptmp)); ptmp->name = strdup(name); ptmp->next = printers; printers = ptmp; -- cgit