aboutsummaryrefslogtreecommitdiffstats
path: root/com32/modules/gpxecmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/modules/gpxecmd.c')
-rw-r--r--com32/modules/gpxecmd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/com32/modules/gpxecmd.c b/com32/modules/gpxecmd.c
index fe414b9a..9d4f4561 100644
--- a/com32/modules/gpxecmd.c
+++ b/com32/modules/gpxecmd.c
@@ -43,7 +43,10 @@ static void gpxecmd(const char **args)
memset(&reg, 0, sizeof reg);
- fx = __com32.cs_bounce;
+ fx = lmalloc(sizeof *fx);
+ if (!fx)
+ return;
+
q = (char *)(fx + 1);
fx->Status = 1;