1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

one more code style fix

This commit is contained in:
Benoit Jacob 2020-11-16 23:16:02 -05:00
parent c9b79561a4
commit bca89e76de

View File

@ -849,7 +849,7 @@ static bool TrySuCommandFlag(const char* flag) {
close( write_end );
// We redirect stderr to /dev/null because by nature this function
// tries incorrect command lines.
int null_fd = open("/dev/null", O_WRONLY);
int null_fd = open( "/dev/null", O_WRONLY );
dup2( null_fd, STDERR_FILENO );
execlp( "su", "su", flag, "id", "-u", nullptr );
exit( EXIT_FAILURE );