commit d52036170635640d1bfd89d53b8e32ec7b352b99
parent bc23590e150758c56a2fb193c9db1dea5f49a212
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Fri, 16 Feb 2024 16:12:36 +0100
Fix the analysis of the arguments of a probe boundary
The side of the boundary was considered mandatory whereas it is
optional.
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/stardis-args.c b/src/stardis-args.c
@@ -259,8 +259,10 @@ parse_probe_boundary(const char* str, struct stardis_probe_boundary* probe)
res = parse_position_and_time(pos_and_time, probe->position, probe->time);
if(res != RES_OK) goto error;
- res = parse_side_indicator(side, probe->side);
- if(res != RES_OK) goto error;
+ if(side) {
+ res = parse_side_indicator(side, probe->side);
+ if(res != RES_OK) goto error;
+ }
exit:
return res;