mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Change assertion condition in __FILE__ buf dumping
Removes a false positive from Clang static analysis
This commit is contained in:
@@ -103,7 +103,7 @@ static char const *Callback__FILE__(void)
|
||||
size_t j = 1;
|
||||
|
||||
/* TODO: is there a way for a file name to be empty? */
|
||||
assert(strlen(fileName) != 0);
|
||||
assert(fileName[0]);
|
||||
/* The assertion above ensures the loop runs at least once */
|
||||
for (size_t i = 0; fileName[i]; i++, j++) {
|
||||
/* Account for the extra backslash inserted below */
|
||||
|
||||
Reference in New Issue
Block a user