X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=libdivecomputer.c;h=4ff41486db453fda6d76f0e3c9a27a2dd7f15588;hb=c544226334ec1bfaac1c8d649722bb17728606e1;hp=daf724190d44d7868ff1a753c29a6a9954c06e09;hpb=16b6df559f7b5aabbcbec7d7d08f3687b30384dc;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;