X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=libdivecomputer.c;h=4ff41486db453fda6d76f0e3c9a27a2dd7f15588;hb=1d6903c65a4980ac51a3508db6a388ab07111341;hp=daf724190d44d7868ff1a753c29a6a9954c06e09;hpb=854391419f7ed669eab43ed36c6a13a313eb3436;p=ext%2Fsubsurface.git diff --git a/libdivecomputer.c b/libdivecomputer.c index daf7241..4ff4148 100644 --- a/libdivecomputer.c +++ b/libdivecomputer.c @@ -175,7 +175,7 @@ sample_cb(parser_sample_type_t type, parser_sample_value_t value, void *userdata case SAMPLE_TYPE_TIME: sample = prepare_sample(divep); sample->time.seconds = value.time; - finish_sample(*divep, sample); + finish_sample(*divep); break; case SAMPLE_TYPE_DEPTH: sample->depth.mm = value.depth * 1000 + 0.5;