From: Barry Warsaw Date: Wed, 11 Dec 1996 01:00:46 +0000 (+0000) Subject: cat and puste errors X-Git-Tag: v1.5a1~800 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1abda0fb1210946b76c8871fc64a19b9568c232f;p=thirdparty%2FPython%2Fcpython.git cat and puste errors --- diff --git a/Modules/nismodule.c b/Modules/nismodule.c index c74957a8aac8..a00a0e6e1784 100644 --- a/Modules/nismodule.c +++ b/Modules/nismodule.c @@ -294,9 +294,12 @@ nis_maplist () CLIENT *cl, *clnt_create(); char *server = ""; int mapi = 0; + int err; - if ((err = yp_get_default_domain (&dom)) != 0) - return nis_error(err); + if ((err = yp_get_default_domain (&dom)) != 0) { + nis_error(err); + return NULL; + } while (!strcmp("", server) && aliases[mapi].map != 0L) { yp_master (dom, aliases[mapi].map, &server);