Commit 99789d25 authored by Mukund Sivaraman's avatar Mukund Sivaraman

file-jpeg: Initialize fields in case sscanf() assigns fewer of them

parent fab87871
......@@ -1248,6 +1248,10 @@ load_defaults (void)
gimp_parasite_free (parasite);
/* Initialize tmpvals in case fewer fields exist in the parasite
(e.g., when importing from a previous version of GIMP). */
memcpy(&tmpvals, &jsvals, sizeof jsvals);
num_fields = sscanf (def_str,
"%lf %lf %d %d %d %d %d %d %d %d %d %d %d %d %d",
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment