commit 89ec7c4095c343a07e9561d3d71ba5b6f3202c35
parent acfd22d0149f3cc20b20ecc43abb6881db93abf8
Author: Nihal Jere <nihal@nihaljere.xyz>
Date: Tue, 22 Feb 2022 00:12:58 -0600
waycopy: add missing return
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/waycopy.c b/waycopy.c
@@ -48,6 +48,7 @@ data_source_send(void *data, struct zwlr_data_control_source_v1 *source, const c
FILE *out = fdopen(fd, "w");
if (out == NULL) {
warn("failed to open fd as FILE");
+ return;
}
copyfile(out, temp);