From e53a78f7d70908613f2f5740aba5dccbfbc17280 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 17 Apr 2026 14:18:35 +1000 Subject: [PATCH] tools/record: fix missing NULL check on tmpfile() return value Co-Authored-By: Claude Opus 4.6 Part-of: --- tools/libinput-record.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/libinput-record.c b/tools/libinput-record.c index 40afaf02..b3768738 100644 --- a/tools/libinput-record.c +++ b/tools/libinput-record.c @@ -2033,6 +2033,8 @@ open_output_files(struct record_context *ctx, bool is_prefix) if (d->fp) continue; d->fp = tmpfile(); + if (!d->fp) + return false; } return true;