Fix some C++ issues.

This commit is contained in:
Themaister 2014-06-17 17:08:53 +02:00
parent 20f37f20e8
commit 08cfb27f35
3 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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);

View File

@ -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: