From 3a4d449e5b758586e00edb6eb88f0289b0c28bf1 Mon Sep 17 00:00:00 2001 From: mrg Date: Wed, 30 Apr 1997 07:02:18 +0000 Subject: [PATCH] use a nul not '0'. from in PR#3558 --- lib/libc/net/res_init.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libc/net/res_init.c b/lib/libc/net/res_init.c index 716e387f2899..136a611ee9db 100644 --- a/lib/libc/net/res_init.c +++ b/lib/libc/net/res_init.c @@ -1,4 +1,4 @@ -/* $NetBSD: res_init.c,v 1.11 1997/04/13 10:30:50 mrg Exp $ */ +/* $NetBSD: res_init.c,v 1.12 1997/04/30 07:02:18 mrg Exp $ */ /*- * Copyright (c) 1985, 1989, 1993 @@ -58,7 +58,7 @@ static char sccsid[] = "@(#)res_init.c 8.1 (Berkeley) 6/7/93"; static char rcsid[] = "Id: res_init.c,v 8.7 1996/09/28 06:51:07 vixie Exp"; #else -static char rcsid[] = "$NetBSD: res_init.c,v 1.11 1997/04/13 10:30:50 mrg Exp $"; +static char rcsid[] = "$NetBSD: res_init.c,v 1.12 1997/04/30 07:02:18 mrg Exp $"; #endif #endif /* LIBC_SCCS and not lint */ @@ -137,7 +137,7 @@ res_init() _res.ndots = 1; _res.pfcode = 0; _res.lookups[0] = 'f'; - _res.lookups[1] = '0'; + _res.lookups[1] = '\0'; /* Allow user to override the local domain definition */ if ((cp = getenv("LOCALDOMAIN")) != NULL) { @@ -183,7 +183,7 @@ res_init() if ((fp = fopen(_PATH_RESCONF, "r")) != NULL) { _res.lookups[0] = 'b'; _res.lookups[1] = 'f'; - _res.lookups[2] = '0'; + _res.lookups[2] = '\0'; /* read the config file */ while (fgets(buf, sizeof(buf), fp) != NULL) {