X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=ao-tools%2Flib%2Fcc-logfile.c;h=c193b1c7f5ec4f3a3120dfa392898b1d42d90b21;hb=c2acda26c1e4e0d7ffda9cd985180562f61aa88b;hp=842e5c7c3cdb1b791dda54de28a9764ae8071a34;hpb=2d77c18b15834046b7b79d49d87211828f2409e9;p=fw%2Faltos diff --git a/ao-tools/lib/cc-logfile.c b/ao-tools/lib/cc-logfile.c index 842e5c7c..c193b1c7 100644 --- a/ao-tools/lib/cc-logfile.c +++ b/ao-tools/lib/cc-logfile.c @@ -3,7 +3,8 @@ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of @@ -305,8 +306,8 @@ cc_log_read(FILE *file) { struct cc_flightraw *f; char line[8192]; - double ground_pres; - int ground_pres_count; + double ground_pres = 0.0; + int ground_pres_count = 0; f = calloc(1, sizeof (struct cc_flightraw)); if (!f)