mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 09:53:50 +00:00
An another attempt to suppress Coverity warning about mkstemp
This commit is contained in:
parent
388573cf60
commit
5f6f2c15b1
1 changed files with 3 additions and 0 deletions
|
@ -150,6 +150,9 @@ static void gdb_info(pid_t pid)
|
||||||
* So CoverityScan warning is valid only for ancient versions of stdlib.
|
* So CoverityScan warning is valid only for ancient versions of stdlib.
|
||||||
*/
|
*/
|
||||||
strcpy(respfile, "/tmp/gdb-respfile-XXXXXX");
|
strcpy(respfile, "/tmp/gdb-respfile-XXXXXX");
|
||||||
|
#ifdef __COVERITY__
|
||||||
|
umask(0600);
|
||||||
|
#endif
|
||||||
if((fd=mkstemp(respfile)) >= 0 && (f=fdopen(fd, "w")) != nullptr)
|
if((fd=mkstemp(respfile)) >= 0 && (f=fdopen(fd, "w")) != nullptr)
|
||||||
{
|
{
|
||||||
fprintf(f, "attach %d\n"
|
fprintf(f, "attach %d\n"
|
||||||
|
|
Loading…
Reference in a new issue