mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix calloc parameter order.
* Set correct calloc parameters order(num, size) Signed-off-by: Boris Barbulovski <bbarbulovski@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e7eb06d78c
commit
772c9fb0b1
2 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue