summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1996-12-11 01:00:46 (GMT)
committerBarry Warsaw <barry@python.org>1996-12-11 01:00:46 (GMT)
commit1abda0fb1210946b76c8871fc64a19b9568c232f (patch)
tree071cfccc65608b3ff8b406b0888d56d8f61ba117 /Modules
parent3696c524a4c24d86080926eebb81f9e02412ab01 (diff)
downloadcpython-1abda0fb1210946b76c8871fc64a19b9568c232f.zip
cpython-1abda0fb1210946b76c8871fc64a19b9568c232f.tar.gz
cpython-1abda0fb1210946b76c8871fc64a19b9568c232f.tar.bz2
cat and puste errors
Diffstat (limited to 'Modules')
-rw-r--r--Modules/nismodule.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/Modules/nismodule.c b/Modules/nismodule.c
index c74957a..a00a0e6 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);