[sr-dev] git:5.3:f39814ce: core: str - fixed wrong (undo'ed) version of STR_ZTOV() macro

Daniel-Constantin Mierla miconda at gmail.com
Sat Oct 3 08:34:46 CEST 2020


Module: kamailio
Branch: 5.3
Commit: f39814ce38fdaee6dd32dbacd956aa6da4966de8
URL: https://github.com/kamailio/kamailio/commit/f39814ce38fdaee6dd32dbacd956aa6da4966de8

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2020-10-03T08:31:34+02:00

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

(cherry picked from commit 65ab73a7efabf4a55e913adfa604094c9ad88cdb)

---

Modified: src/core/str.h

---

Diff:  https://github.com/kamailio/kamailio/commit/f39814ce38fdaee6dd32dbacd956aa6da4966de8.diff
Patch: https://github.com/kamailio/kamailio/commit/f39814ce38fdaee6dd32dbacd956aa6da4966de8.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)
 
 /** @} */
 




More information about the sr-dev mailing list