diff options
author | Giampaolo Rodola' <g.rodola@gmail.com> | 2013-03-16 14:02:57 +0000 |
---|---|---|
committer | Giampaolo Rodola' <g.rodola@gmail.com> | 2013-03-16 14:02:57 +0000 |
commit | 3a01e0d1b7d4c86f4fa895cfb1744c989e4a639c (patch) | |
tree | 417f7cec77696e46ac41aa0c4f476b7e65b7db24 | |
parent | 46d2b9a5361db197150fada26b6ae23e41fe3315 (diff) | |
download | psutil-3a01e0d1b7d4c86f4fa895cfb1744c989e4a639c.tar.gz |
BSD: fix 2 compiler warnings
-rw-r--r-- | psutil/arch/bsd/process_info.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/psutil/arch/bsd/process_info.c b/psutil/arch/bsd/process_info.c index 8b0d9ec2..59fe90a7 100644 --- a/psutil/arch/bsd/process_info.c +++ b/psutil/arch/bsd/process_info.c @@ -133,7 +133,8 @@ char path = malloc(size); if (path == NULL) { - return PyErr_NoMemory(); + PyErr_NoMemory(); + return NULL; } *pathsize = size; @@ -177,7 +178,8 @@ char /* Allocate space for the arguments. */ procargs = (char *)malloc(argmax); if (procargs == NULL) { - return PyErr_NoMemory(); + PyErr_NoMemory(); + return NULL; } /* |