Module: kamailio Branch: master Commit: f54c723d9d8b8dcd0ad09c3787f3bb2e823d82b8 URL: https://github.com/kamailio/kamailio/commit/f54c723d9d8b8dcd0ad09c3787f3bb2e...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2016-05-02T11:46:30+02:00
lib/srdb1: adjust the length of str time representation for no-quotes
- used only by usrloc fix done in previous commit
---
Modified: lib/srdb1/db_ut.c
---
Diff: https://github.com/kamailio/kamailio/commit/f54c723d9d8b8dcd0ad09c3787f3bb2e... Patch: https://github.com/kamailio/kamailio/commit/f54c723d9d8b8dcd0ad09c3787f3bb2e...
---
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; }