Module: kamailio
Branch: master
Commit: 792261b43d74518e6d67f807df60b6622ba2d9f8
URL:
https://github.com/kamailio/kamailio/commit/792261b43d74518e6d67f807df60b66…
Author: Sergey Safarov <s.safarov(a)gmail.com>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-11-18T20:07:54+01:00
utils/db_berkeley: fixed unused var
kambdb_recover.c: In function 'load_metadata_columns':
kambdb_recover.c:819:6: warning: variable 'ret' set but not used
[-Wunused-but-set-variable]
819 | int ret,n,len;
| ^~~
---
Modified: utils/db_berkeley/kambdb_recover.c
---
Diff:
https://github.com/kamailio/kamailio/commit/792261b43d74518e6d67f807df60b66…
Patch:
https://github.com/kamailio/kamailio/commit/792261b43d74518e6d67f807df60b66…
---
diff --git a/utils/db_berkeley/kambdb_recover.c b/utils/db_berkeley/kambdb_recover.c
index 30733a01ff..a3fa82dfd6 100644
--- a/utils/db_berkeley/kambdb_recover.c
+++ b/utils/db_berkeley/kambdb_recover.c
@@ -816,11 +816,11 @@ table_p create_table(char *_s)
*/
int load_metadata_columns(table_p _tp, char* line)
{
- int ret,n,len;
+ int n,len;
char *s = NULL;
char cn[64], ct[16];
column_p col;
- ret = n = len = 0;
+ n = len = 0;
if(!_tp) return -1;
if(_tp->ncols!=0) return 0;