summaryrefslogtreecommitdiff
path: root/source3/printing/print_svid.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/printing/print_svid.c')
-rw-r--r--source3/printing/print_svid.c4
1 files changed, 2 insertions, 2 deletions
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;