Skip to content

Commit

Permalink
sql_cacher: fix uninitialized return code in case of error
Browse files Browse the repository at this point in the history
(cherry picked from commit 38fd4a6)
  • Loading branch information
razvancrainea committed Apr 21, 2017
1 parent ab98387 commit f5d572d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/sql_cacher/sql_cacher.c
Expand Up @@ -1161,7 +1161,7 @@ static int cdb_fetch(pv_name_fix_t *pv_name, str *cdb_res, int *entry_rld_vers)
{
str cdb_key;
str rld_vers_key;
int rc;
int rc = -1;

cdb_key.len = pv_name->id.len + pv_name->key.len;
cdb_key.s = pkg_malloc(cdb_key.len);
Expand Down

0 comments on commit f5d572d

Please sign in to comment.