[Midnightbsd-cvs] src [7748] stable/0.8/lib/libmport/bundle_read_install_pkg.c: get rid of silly error.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat Aug 20 18:45:54 EDT 2016


Revision: 7748
          http://svnweb.midnightbsd.org/src/?rev=7748
Author:   laffer1
Date:     2016-08-20 18:45:53 -0400 (Sat, 20 Aug 2016)
Log Message:
-----------
get rid of silly error. this is not the case. some commands do not have data

Modified Paths:
--------------
    stable/0.8/lib/libmport/bundle_read_install_pkg.c

Modified: stable/0.8/lib/libmport/bundle_read_install_pkg.c
===================================================================
--- stable/0.8/lib/libmport/bundle_read_install_pkg.c	2016-08-20 22:42:09 UTC (rev 7747)
+++ stable/0.8/lib/libmport/bundle_read_install_pkg.c	2016-08-20 22:45:53 UTC (rev 7748)
@@ -316,12 +316,6 @@
 		    if (mode != NULL)
 			    e->mode = strdup((char *) mode);
 
-		    if (e->data == NULL) {
-			    err = "Out of memory";
-			    result = MPORT_ERR_FATAL;
-			    break;
-		    }
-
 		    STAILQ_INSERT_TAIL(alist, e, next);
 	    }
 



More information about the Midnightbsd-cvs mailing list