chiark / gitweb /
coverity: fix a couple of bugs found by coverity
[elogind.git] / src / path.c
index 1d4aa2174a06fa20246a6f8e2764045d06448cd5..f15c9214efb35c73fd5cdea904dc802d5fc783cd 100644 (file)
@@ -563,7 +563,7 @@ static void path_fd_event(Unit *u, int fd, uint32_t events, Watch *w) {
         assert(l > 0);
 
         if (!(buf = malloc(l))) {
-                log_error("Failed to allocate buffer: %s", strerror(-ENOMEM));
+                log_error("Failed to allocate buffer: %s", strerror(ENOMEM));
                 goto fail;
         }