---
display/mspace.c | 6 ++++--
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;
}
--
1.7.5.2
_______________________________________________
Spice-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/spice-devel