aboutsummaryrefslogtreecommitdiff
path: root/qlop.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-01-05 03:00:11 +0000
committerMike Frysinger <vapier@gentoo.org>2010-01-05 03:00:11 +0000
commitab3b66bb006d07b33b1a138b1a30498411418197 (patch)
treeb3374a2ee65c1940c17135e5b912062925dba1f5 /qlop.c
parentchroot is more fitting for the root symlink action that takes place in proc. ... (diff)
downloadportage-utils-ab3b66bb006d07b33b1a138b1a30498411418197.tar.gz
portage-utils-ab3b66bb006d07b33b1a138b1a30498411418197.tar.bz2
portage-utils-ab3b66bb006d07b33b1a138b1a30498411418197.zip
delete NULL malloc check pointed out by Didier Barvaux #298962
Diffstat (limited to 'qlop.c')
-rw-r--r--qlop.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/qlop.c b/qlop.c
index 933b7852..bbd23b9a 100644
--- a/qlop.c
+++ b/qlop.c
@@ -1,7 +1,7 @@
/*
* Copyright 2005-2007 Gentoo Foundation
* Distributed under the terms of the GNU General Public License v2
- * $Header: /var/cvsroot/gentoo-projects/portage-utils/qlop.c,v 1.48 2009/12/29 00:42:18 solar Exp $
+ * $Header: /var/cvsroot/gentoo-projects/portage-utils/qlop.c,v 1.49 2010/01/05 03:00:11 vapier Exp $
*
* Copyright 2005-2007 Ned Ludd - <solar@gentoo.org>
* Copyright 2005-2007 Mike Frysinger - <vapier@gentoo.org>
@@ -52,7 +52,7 @@ static const char *qlop_opts_help[] = {
"Read emerge logfile instead of " QLOP_DEFAULT_LOGFILE,
COMMON_OPTS_HELP
};
-static const char qlop_rcsid[] = "$Id: qlop.c,v 1.48 2009/12/29 00:42:18 solar Exp $";
+static const char qlop_rcsid[] = "$Id: qlop.c,v 1.49 2010/01/05 03:00:11 vapier Exp $";
#define qlop_usage(ret) usage(ret, QLOP_FLAGS, qlop_long_opts, qlop_opts_help, lookup_applet_idx("qlop"))
#define QLOP_LIST 0x01
@@ -483,11 +483,6 @@ void show_current_emerge(void)
* for the optimistic case */
ret = sysctl(mib, 3, NULL, &size, NULL, 0);
ip = xmalloc(sizeof(*ip) * size);
- if (ip == NULL) {
- warnp("Could not allocate %d bytes for process information",
- sizeof(struct kinfo_proc) * size);
- return;
- }
while (1) {
ret = sysctl(mib, 3, ip, &size, NULL, 0);
if (ret >= 0 && errno == ENOMEM) {