diff options
Diffstat (limited to 'parse-xml.c')
-rw-r--r-- | parse-xml.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/parse-xml.c b/parse-xml.c index f5859ba74..3c536ed4b 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -1277,7 +1277,7 @@ static void trip_start(void) if (cur_trip) return; dive_end(); - cur_trip = calloc(sizeof(dive_trip_t),1); + cur_trip = calloc(1, sizeof(dive_trip_t)); memset(&cur_tm, 0, sizeof(cur_tm)); } |