Module: kamailio
Branch: master
Commit: 224cdfe4999dfc1084f61dfe2130230d843f8296
URL:
https://github.com/kamailio/kamailio/commit/224cdfe4999dfc1084f61dfe2130230…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-02-21T08:17:46+01:00
db_redis: declare variable at beginning of function
- doing it inside for statement breaks compiling with less than C99
- reported in Jenkings debs building log
---
Modified: src/modules/db_redis/redis_connection.c
---
Diff:
https://github.com/kamailio/kamailio/commit/224cdfe4999dfc1084f61dfe2130230…
Patch:
https://github.com/kamailio/kamailio/commit/224cdfe4999dfc1084f61dfe2130230…
---
diff --git a/src/modules/db_redis/redis_connection.c
b/src/modules/db_redis/redis_connection.c
index d81f1a973c..c0a6c383d1 100644
--- a/src/modules/db_redis/redis_connection.c
+++ b/src/modules/db_redis/redis_connection.c
@@ -25,8 +25,10 @@
#include "redis_table.h"
static void print_query(redis_key_t *query) {
+ redis_key_t *k;
+
LM_DBG("Query dump:\n");
- for (redis_key_t *k = query; k; k = k->next) {
+ for (k = query; k; k = k->next) {
LM_DBG(" %s\n", k->key.s);
}
}