[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH] Eliminate compiler warning due to gettext string with no format args



From: Laine Stump <laine redhat com>

I just pushed this trivial fix, since it breaks the build for anyone
who uses -Wformat-security -Werror.

---
 tools/virsh.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/virsh.c b/tools/virsh.c
index 8e6e2b4..38ecc0f 100644
--- a/tools/virsh.c
+++ b/tools/virsh.c
@@ -1462,7 +1462,7 @@ cmdManagedSaveRemove(vshControl *ctl, const vshCmd *cmd)
 
     hassave = virDomainHasManagedSaveImage(dom, 0);
     if (hassave < 0) {
-        vshError(ctl, _("Failed to check for domain managed save image"));
+        vshError(ctl, "%s", _("Failed to check for domain managed save image"));
         goto cleanup;
     }
 
-- 
1.7.1.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]