From d167da86d922d1c9341848117f7ce140a92dd951 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 16 Jun 2014 10:31:29 +0100 Subject: [PATCH] virt-log: do_log_journal: return instead of exiting immediately. This cleans up commit a3475cf9bbbbd3514b117d5edd75d9c0e239d43a. --- cat/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cat/log.c b/cat/log.c index 770a3a7cb..15a26e803 100644 --- a/cat/log.c +++ b/cat/log.c @@ -325,7 +325,7 @@ do_log_journal (void) xattrs = guestfs_journal_get (g); if (xattrs == NULL) - exit (EXIT_FAILURE); + return -1; ts = guestfs_journal_get_realtime_usec (g); /* error checked below */