core: str - fixed wrong (undo'ed) version of STR_ZTOV() macro
authorDaniel-Constantin Mierla <miconda@gmail.com>
Mon, 27 Apr 2020 13:24:23 +0000 (15:24 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Mon, 27 Apr 2020 13:24:23 +0000 (15:24 +0200)
src/core/str.h

index 83334b8..01b12ec 100644 (file)
@@ -137,7 +137,7 @@ typedef struct _str str;
                if (v != '\0') { \
                        c = v; \
                } \
-       }
+       } while(0)
 
 /** @} */