Module: kamailio
Branch: master
Commit: 6794815cf9b1f4dae0a4a7791d16e56fe7dcceb6
URL:
https://github.com/kamailio/kamailio/commit/6794815cf9b1f4dae0a4a7791d16e56…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-24T20:05:26+02:00
db_redis: fixed compile warning on testing array address
---
Modified: src/modules/db_redis/redis_connection.c
---
Diff:
https://github.com/kamailio/kamailio/commit/6794815cf9b1f4dae0a4a7791d16e56…
Patch:
https://github.com/kamailio/kamailio/commit/6794815cf9b1f4dae0a4a7791d16e56…
---
diff --git a/src/modules/db_redis/redis_connection.c
b/src/modules/db_redis/redis_connection.c
index 62c63f0530..69bb099800 100644
--- a/src/modules/db_redis/redis_connection.c
+++ b/src/modules/db_redis/redis_connection.c
@@ -405,9 +405,9 @@ void db_redis_consume_replies(km_redis_con_t *con) {
}
const char *db_redis_get_error(km_redis_con_t *con) {
- if (con && con->con && con->con->errstr) {
+ if (con && con->con && con->con->errstr[0]) {
return con->con->errstr;
} else {
return "<broken redis connection>";
}
-}
\ No newline at end of file
+}