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 b44180e1fb8ab2d9fe018e5b2471e17ef24fedca..44efa1aaeaac6a0f02cccfeadacdc7bb8be7d8ff 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;
                 }
         }