summaryrefslogtreecommitdiffstats
path: root/openbsd/Platform.c
diff options
context:
space:
mode:
authorHisham <hisham@gobolinux.org>2016-02-02 15:53:02 +0100
committerHisham <hisham@gobolinux.org>2016-02-02 15:53:02 +0100
commitb54d2dde407921caa7561dde6b45831ba93d0840 (patch)
treecd81eea35dd65e46d22f2801ea403e1efc06eb59 /openbsd/Platform.c
parenta1f7f2869ec2bd860d5b4e4b39736ca877afdf6f (diff)
Check for failure in allocations.
Diffstat (limited to 'openbsd/Platform.c')
-rw-r--r--openbsd/Platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsd/Platform.c b/openbsd/Platform.c
index 90fbd2bc..251a7136 100644
--- a/openbsd/Platform.c
+++ b/openbsd/Platform.c
@@ -264,7 +264,7 @@ void Platform_setSwapValues(Meter* this) {
return;
}
- swdev = calloc(nswap, sizeof(*swdev));
+ swdev = xCalloc(nswap, sizeof(*swdev));
if (swdev == NULL) {
return;
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy