Module: kamailio
Branch: 4.4
Commit: 72ddb3a70dfc88404eacf0a878f36cc56de2e74e
URL:
https://github.com/kamailio/kamailio/commit/72ddb3a70dfc88404eacf0a878f36cc…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-05-02T11:47:48+02:00
lib/srdb1: adjust the length of str time representation for no-quotes
- used only by usrloc fix done in previous commit
(cherry picked from commit f54c723d9d8b8dcd0ad09c3787f3bb2e823d82b8)
---
Modified: lib/srdb1/db_ut.c
---
Diff:
https://github.com/kamailio/kamailio/commit/72ddb3a70dfc88404eacf0a878f36cc…
Patch:
https://github.com/kamailio/kamailio/commit/72ddb3a70dfc88404eacf0a878f36cc…
---
diff --git a/lib/srdb1/db_ut.c b/lib/srdb1/db_ut.c
index 96ca326..6b3bad4 100644
--- a/lib/srdb1/db_ut.c
+++ b/lib/srdb1/db_ut.c
@@ -264,8 +264,10 @@ inline int db_time2str_ex(time_t _v, char* _s, int* _l, int _qmode)
}
*_l = l;
- if(_qmode) *(_s + l) = '\'';
- *_l = l + 2;
+ if(_qmode) {
+ *(_s + l) = '\'';
+ *_l = l + 2;
+ }
return 0;
}