Skip to content

Commit

Permalink
another istance of NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
brucefan1983 committed Oct 25, 2024
1 parent 99fe2bf commit fdc19ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utilities/read_file.cu
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ int is_valid_int(const char* s, int* result)

int is_valid_real(const char* s, double* result)
{
if (s == NULL || *s == '\0') {
if (s == NULL) {
return 0;
} else if (*s == '\0') {
return 0;
}
char* p;
Expand Down

0 comments on commit fdc19ea

Please sign in to comment.