Skip to content

Commit

Permalink
Fix: Change 'nullptr' to 'NULL' in strtok call
Browse files Browse the repository at this point in the history
This change ensures that the code adheres to traditional C standards while maintaining the same functionality.

Signed-off-by: Kaiyao Duan <[email protected]>
  • Loading branch information
inspireMeNow committed Oct 9, 2024
1 parent 69bcf8c commit f733258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_env_detect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ bool is_option_disabled(const char* options, const char* option)
disabled = true;
break;
}
token = strtok(nullptr, ",");
token = strtok(NULL, ",");
}

free(options_copy);
Expand Down

0 comments on commit f733258

Please sign in to comment.