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

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



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


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