summaryrefslogtreecommitdiff
path: root/src/portalisg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/portalisg.c')
-rw-r--r--src/portalisg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/portalisg.c b/src/portalisg.c
index d7851eb..d0f5923 100644
--- a/src/portalisg.c
+++ b/src/portalisg.c
@@ -37,7 +37,9 @@ static con_cmdcbv2 disconnect_cb;
DEF_FEAT_CCMD_HERE(sst_portal_resetisg,
"Remove \"ISG\" state and disconnect from the server", 0) {
// TODO(compat): OE? guess it might work by accident due to cdecl, find out
- disconnect_cb(&(struct con_cmdargs){0});
+ struct con_cmdargs args; // {0} does a memset(), even with -ffreestanding.
+ args.argc = 0; // we only actually have to init this one member.
+ disconnect_cb(&args);
*isg_flag = false;
}