diff --git a/command.c b/command.c index 3a60187bd5..93e0a52111 100644 --- a/command.c +++ b/command.c @@ -571,7 +571,7 @@ static bool verify_command(const char *cmd) bool network_cmd_send(const char *cmd_) { if (!netplay_init_network()) - return NULL; + return false; char *command = strdup(cmd_); if (!command) diff --git a/file_extract.c b/file_extract.c index 48a660f02e..c87d12ec57 100644 --- a/file_extract.c +++ b/file_extract.c @@ -236,7 +236,7 @@ bool zlib_parse_file(const char *file, zlib_file_cb file_cb, void *userdata) const struct zlib_file_backend *backend = zlib_get_default_file_backend(); if (!backend) - return NULL; + return false; ssize_t zip_size = 0; void *handle = backend->open(file); diff --git a/tools/retrolaunch/rl_fnmatch.c b/tools/retrolaunch/rl_fnmatch.c index 604ea74b18..f538fef1ba 100644 --- a/tools/retrolaunch/rl_fnmatch.c +++ b/tools/retrolaunch/rl_fnmatch.c @@ -79,7 +79,7 @@ int rl_fnmatch(const char *pattern, const char *string, int flags) { case '\\': c++; // Dangling escape at end of pattern - if (c == '\0') { + if (*c == '\0') { // FIXME: Was c == '\0' (makes no sense). Not sure if c == NULL or *c == '\0' is intended. Assuming *c due to c++ right before. return FNM_NOMATCH; } default: