diff options
Add static analysis via flawfinder(1)
1 files changed, 2 insertions, 0 deletions
| -rw-r--r-- | uri.c | 2 |
@@ -20,11 +20,13 @@ badwolf_ensure_uri_scheme(const gchar *text, gboolean try_file) if(try_file) { + /* flawfinder: ignore. `path` is allocated by realpath itself */ path = realpath(text, NULL); gchar *f = NULL; if(path != NULL) { + /* flawfinder: ignore. only used as presence check, no way to pass file descriptor */ if(access(path, R_OK) == 0) { f = g_strdup_printf("file://%s", path); |