mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-06-10 02:08:20 +02:00
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:
parent
a51398cb8d
commit
e53a78f7d7
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue