Module: kamailio
Branch: master
Commit: 65ab73a7efabf4a55e913adfa604094c9ad88cdb
URL: 
https://github.com/kamailio/kamailio/commit/65ab73a7efabf4a55e913adfa604094c9ad88cdb

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2020-04-27T15:24:23+02:00

core: str - fixed wrong (undo'ed) version of STR_ZTOV() macro

---

Modified: src/core/str.h

---

Diff:  
https://github.com/kamailio/kamailio/commit/65ab73a7efabf4a55e913adfa604094c9ad88cdb.diff
Patch: 
https://github.com/kamailio/kamailio/commit/65ab73a7efabf4a55e913adfa604094c9ad88cdb.patch

---

diff --git a/src/core/str.h b/src/core/str.h
index 83334b8c86..01b12ecb62 100644
--- a/src/core/str.h
+++ b/src/core/str.h
@@ -137,7 +137,7 @@ typedef struct _str str;
                if (v != '\0') { \
                        c = v; \
                } \
-       }
+       } while(0)
 
 /** @} */
 


_______________________________________________
Kamailio (SER) - Development Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to