From c84510b2caa37b6114f9b39463ca6707c8862ff3 Mon Sep 17 00:00:00 2001 From: Dave Jones Date: Mon, 27 Jul 2020 15:11:21 +0100 Subject: [PATCH] Fix compiler error; potential NULL arg in %s format string --- interface/vmcs_host/linux/vcfilesys.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/interface/vmcs_host/linux/vcfilesys.c b/interface/vmcs_host/linux/vcfilesys.c index 9f3ebf159..cadf6cb21 100644 --- a/interface/vmcs_host/linux/vcfilesys.c +++ b/interface/vmcs_host/linux/vcfilesys.c @@ -1014,12 +1014,10 @@ int64_t vc_hostfs_totalspace64(const char *inPath) { ret = -1; } - } - - DEBUG_MINOR( "vc_hostfs_totalspace for '%s' returning %" PRId64 "", path, ret ); - if (path) + DEBUG_MINOR( "vc_hostfs_totalspace for '%s' returning %" PRId64 "", path, ret ); free( path ); + } return ret; }