commit bc16f51e718bdcd7753429427c4920fa3419c32d from: Omar Polo via: Thomas Adam date: Sat Mar 30 17:21:23 2024 UTC don't ignore err while preparing notifications contents commit - af4fddcd55f71dde11dbd8cfb35363ecb2e431cd commit + bc16f51e718bdcd7753429427c4920fa3419c32d blob - 5ce3807e04e28d69efa93657004967ec6eb740a9 blob + 349809a56e81c41f351d4a1a0b697969e031c83a --- gotd/repo_write.c +++ gotd/repo_write.c @@ -2164,6 +2164,8 @@ render_notification(struct imsg *imsg, struct gotd_ims iev, fd); break; } + if (err != NULL) + goto done; if (fsync(fd) == -1) { err = got_error_from_errno("fsync");