diff options
author | David Robillard <d@drobilla.net> | 2022-10-23 21:48:47 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-10-23 21:48:47 -0400 |
commit | 5947cac55a98140859b7a5e7de357a1d45bccd43 (patch) | |
tree | 44f4ca4764b76fbec32987744bd93aec3b7322f6 /src/uri.c | |
parent | 57a6d0efb771801a9d91f817cc283a4994610197 (diff) | |
download | serd-5947cac55a98140859b7a5e7de357a1d45bccd43.tar.gz serd-5947cac55a98140859b7a5e7de357a1d45bccd43.tar.bz2 serd-5947cac55a98140859b7a5e7de357a1d45bccd43.zip |
Fix "suspicious" string comparison
This is beyond silly.
Diffstat (limited to 'src/uri.c')
-rw-r--r-- | src/uri.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -17,7 +17,7 @@ serd_uri_to_path(const uint8_t* uri) { const uint8_t* path = uri; if (!is_windows_path(uri) && serd_uri_string_has_scheme(uri)) { - if (strncmp((const char*)uri, "file:", 5)) { + if (!!strncmp((const char*)uri, "file:", 5)) { fprintf(stderr, "Non-file URI `%s'\n", uri); return NULL; } |