Skip to content

Commit

Permalink
DB core: Remove redundant assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuchircu committed Mar 6, 2017
1 parent d7b5dc8 commit 5777976
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db/db_res.c
Expand Up @@ -87,7 +87,8 @@ int db_free_columns(db_res_t* _r)
*/
db_res_t* db_new_result(void)
{
db_res_t* r = NULL;
db_res_t* r;

r = (db_res_t*)pkg_malloc(sizeof(db_res_t));
if (!r) {
LM_ERR("no private memory left\n");
Expand All @@ -114,7 +115,6 @@ int db_free_result(db_res_t* _r)
db_free_rows(_r);
LM_DBG("freeing result set at %p\n", _r);
pkg_free(_r);
_r = NULL;
return 0;
}

Expand Down

0 comments on commit 5777976

Please sign in to comment.