summaryrefslogtreecommitdiff
path: root/tunnelbridge_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'tunnelbridge_cmd.c')
-rw-r--r--tunnelbridge_cmd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tunnelbridge_cmd.c b/tunnelbridge_cmd.c
index a639bc673..29e218d3e 100644
--- a/tunnelbridge_cmd.c
+++ b/tunnelbridge_cmd.c
@@ -609,7 +609,8 @@ uint CheckTunnelBusy(uint tile, int *length)
return (uint)-1;
}
- if (length) *length = len;
+ if (length != NULL)
+ *length = len;
return tile;
}