summaryrefslogtreecommitdiff
path: root/fw/app/src/settings.h
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2025-04-17 17:39:26 +0200
committerxengineering <me@xengineering.eu>2025-04-17 17:39:26 +0200
commitd60dd348fd15cb0fbd797068d5e358ae183386f6 (patch)
treea91eeb49da46a2682b7a272869fee08b7ea3a154 /fw/app/src/settings.h
parent9a89b48c261c1793d07abdad63c04fcff40035be (diff)
downloadiot-contact-d60dd348fd15cb0fbd797068d5e358ae183386f6.tar
iot-contact-d60dd348fd15cb0fbd797068d5e358ae183386f6.tar.zst
iot-contact-d60dd348fd15cb0fbd797068d5e358ae183386f6.zip
fw: app: settings: Minimize changes for SEGFAULT fix
The core issue is that JSON_TOK_STRING as last argument to JSON_OBJ_DESCR_PRIM issues the SEGFAULT. Using JSON_TOK_NUMBER instead is the minimal change to avoid the SEGFAULT temporarily. Obviously this leads to nonsense output since the string is printed out as number.
Diffstat (limited to 'fw/app/src/settings.h')
-rw-r--r--fw/app/src/settings.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/fw/app/src/settings.h b/fw/app/src/settings.h
index dff3c44..9d46132 100644
--- a/fw/app/src/settings.h
+++ b/fw/app/src/settings.h
@@ -15,8 +15,7 @@
struct settings_syslog_target {
-// char ip[IPV6_STRLEN_MAX];
- int ip;
+ char ip[IPV6_STRLEN_MAX];
};
struct settings_syslog {