delta: add missing error check

Follow-up for 59829bb37a.
Fixes CID#1611425.
This commit is contained in:
Yu Watanabe
2025-07-26 03:02:50 +09:00
parent 2c3b3e2fd9
commit fa43d54b55

View 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;
}