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

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

 



From: Laine Stump <laine@xxxxxxxxxx>

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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]