[libvirt] [PATCH]: (trivial) handle OOM as everywhere else

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

 



Hi,
we print an error message on OOM conditions in qemudStartup() at the end
of the function, no need to do it differently in one place.
Cheers,
 -- Guido
[PATCH] handle OOM as everywhere else

---
 src/qemu_driver.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/src/qemu_driver.c b/src/qemu_driver.c
index b003b00..b5ba723 100644
--- a/src/qemu_driver.c
+++ b/src/qemu_driver.c
@@ -208,11 +208,8 @@ qemudStartup(void) {
                      "%s/.libvirt/qemu/log", pw->pw_dir) == -1)
             goto out_of_memory;
 
-        if (asprintf (&base, "%s/.libvirt", pw->pw_dir) == -1) {
-            qemudLog (QEMUD_ERR,
-                      "%s", _("out of memory in asprintf\n"));
+        if (asprintf (&base, "%s/.libvirt", pw->pw_dir) == -1)
             goto out_of_memory;
-        }
     }
 
     /* Configuration paths are either ~/.libvirt/qemu/... (session) or
-- 
1.5.6.5

--
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]