summaryrefslogtreecommitdiff
path: root/src/vmon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vmon.c')
-rw-r--r--src/vmon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vmon.c b/src/vmon.c
index 9e13c04..9a32031 100644
--- a/src/vmon.c
+++ b/src/vmon.c
@@ -654,7 +654,7 @@ int main(int argc, char * const argv[])
if (got_sigchld) {
int status;
- if (vmon_snapshot(vmon) < 0)
+ if (vmon->snapshot && vmon_snapshot(vmon) < 0)
VWM_ERROR("error saving snapshot");
got_sigchld = 0;
© All Rights Reserved