]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
cat and puste errors
authorBarry Warsaw <barry@python.org>
Wed, 11 Dec 1996 01:00:46 +0000 (01:00 +0000)
committerBarry Warsaw <barry@python.org>
Wed, 11 Dec 1996 01:00:46 +0000 (01:00 +0000)
Modules/nismodule.c

index c74957a8aac86606541a42f0794658851a70b8a9..a00a0e6e1784b9fb36d7887d76be75244732a7da 100644 (file)
@@ -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);