Data race on global shared variable
@@ -215,13 +215,13 @@ static void init(grib_accessor* a,const long v, grib_arguments* args)
}
self->dump_jpg = codes_getenv("ECCODES_GRIB_DUMP_JPG_FILE");
-
+ if(self->dump_jpg) {
if (first) {
- if(self->dump_jpg)
printf("GRIB JPEG dumping to %s\n",self->dump_jpg);
first = 0;
}
}
+}
static int value_count(grib_accessor* a,long* n_vals)
{
