Skip to content

Commit

Permalink
utils(timer): Fix incorrect gettimeofday() return value check (#5212)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShubhamDesai authored Feb 26, 2025
1 parent 01f63dc commit a61a6f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/timer/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ int main(void)
{
struct timeval t;

if (gettimeofday(&t, NULL) == -1) {
if (gettimeofday(&t, NULL) != 0) {
fprintf(stderr, "gettimeofday error");
return 1;
}
Expand Down

0 comments on commit a61a6f6

Please sign in to comment.