summaryrefslogtreecommitdiff
path: root/core/io/marshalls.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/io/marshalls.h')
-rw-r--r--core/io/marshalls.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/io/marshalls.h b/core/io/marshalls.h
index 279f782b1a..c21a97ac8a 100644
--- a/core/io/marshalls.h
+++ b/core/io/marshalls.h
@@ -108,8 +108,9 @@ static inline int encode_cstring(const char *p_string, uint8_t *p_data) {
len++;
};
- if (p_data)
+ if (p_data) {
*p_data = 0;
+ }
return len + 1;
}