tools/record: fix missing NULL check on tmpfile() return value

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1467>
This commit is contained in:
Peter Hutterer 2026-04-17 14:18:35 +10:00 committed by Marge Bot
parent a51398cb8d
commit e53a78f7d7

View file

@ -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;