]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
delta: add missing error check
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 25 Jul 2025 18:02:50 +0000 (03:02 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 25 Jul 2025 20:00:02 +0000 (05:00 +0900)
Follow-up for 59829bb37a44a01c4394301fd65478037e6b01d8.
Fixes CID#1611425.

src/delta/delta.c

index 694f3f1fe68d9a88b7a02efdfbfb7e2449befd09..d13516e3107f9da76fab27a8848e0c7c31c9bde8 100644 (file)
@@ -286,6 +286,8 @@ static int enumerate_dir_d(
                 log_debug("Adding to drops: %s %s %s %s %s/%s",
                           unit, glyph(GLYPH_ARROW_RIGHT), *file, glyph(GLYPH_ARROW_RIGHT), path, *file);
                 r = path_put(&h, path, *file, /* override = */ false);
+                if (r < 0)
+                        return r;
         }
         return 0;
 }