summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2011-06-02 13:41:18 +0300
committerAlon Levy <alevy@redhat.com>2011-07-31 12:34:28 +0300
commitee23f61e23ffdcc894f60c329b8f8a041c65df47 (patch)
treefa530e5ff6fed5b7e64cf724edfc462afc9266cb
parent718a7be5503b9225a000d814b82a92058691b13b (diff)
display/mspace: fix mspace_max_footprint and mspace_footprint
-rw-r--r--display/mspace.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/display/mspace.c b/display/mspace.c
index ec29fc6..d0ba123 100644
--- a/display/mspace.c
+++ b/display/mspace.c
@@ -2402,8 +2402,9 @@ size_t mspace_footprint(mspace msp) {
mstate ms = (mstate)msp;
if (ok_magic(ms)) {
result = ms->footprint;
+ } else {
+ USAGE_ERROR_ACTION(ms,ms);
}
- USAGE_ERROR_ACTION(ms,ms);
return result;
}
@@ -2413,8 +2414,9 @@ size_t mspace_max_footprint(mspace msp) {
mstate ms = (mstate)msp;
if (ok_magic(ms)) {
result = ms->max_footprint;
+ } else {
+ USAGE_ERROR_ACTION(ms,ms);
}
- USAGE_ERROR_ACTION(ms,ms);
return result;
}