Module: kamailio
Branch: 5.1
Commit: 1d3453e999902323d9515fc8ef79e00c2e6698ba
URL:
https://github.com/kamailio/kamailio/commit/1d3453e999902323d9515fc8ef79e00…
Author: Sergey Safarov <s.safarov(a)gmail.com>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-11-18T20:09:07+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;
| ^~~
(cherry picked from commit 792261b43d74518e6d67f807df60b6622ba2d9f8)
---
Modified: utils/db_berkeley/kambdb_recover.c
---
Diff:
https://github.com/kamailio/kamailio/commit/1d3453e999902323d9515fc8ef79e00…
Patch:
https://github.com/kamailio/kamailio/commit/1d3453e999902323d9515fc8ef79e00…
---
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;