diff options
author | Boris Barbulovski <bbarbulovski@gmail.com> | 2014-02-10 16:04:37 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-02-10 07:56:09 -0800 |
commit | 772c9fb0b14240ac6959f99052a7f78cb56c6944 (patch) | |
tree | 9e254103235d7692fd0e6a24b2be05dcae5c0589 /divelist.c | |
parent | e7eb06d78cc695bb598a739325225121c8113610 (diff) | |
download | subsurface-772c9fb0b14240ac6959f99052a7f78cb56c6944.tar.gz |
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>
Diffstat (limited to 'divelist.c')
-rw-r--r-- | divelist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/divelist.c b/divelist.c index e04807ece..b16c9e513 100644 --- a/divelist.c +++ b/divelist.c @@ -665,7 +665,7 @@ void add_dive_to_trip(struct dive *dive, dive_trip_t *trip) dive_trip_t *create_and_hookup_trip_from_dive(struct dive *dive) { - dive_trip_t *dive_trip = calloc(sizeof(dive_trip_t),1); + dive_trip_t *dive_trip = calloc(1, sizeof(dive_trip_t)); dive_trip->when = dive->when; if (dive->location) dive_trip->location = strdup(dive->location); |