chiark / gitweb /
cgls: fix missing initialization
authorLennart Poettering <lennart@poettering.net>
Thu, 8 Jul 2010 19:17:41 +0000 (21:17 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 8 Jul 2010 19:17:41 +0000 (21:17 +0200)
src/cgroup-show.c

index b44180e..44efa1a 100644 (file)
@@ -228,7 +228,7 @@ int show_cgroup_recursive(const char *name, const char *prefix, unsigned n_colum
                 }
 
                 if (asprintf(&last, "%s/%s", name, de->d_name) < 0) {
-                        log_error("Out of memory");
+                        r = -ENOMEM;
                         goto finish;
                 }
         }