Oops, initialize the tables to NULL on gp_file_new...

git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2079 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
Lutz Mueller
2001-08-26 10:47:21 +00:00
parent 506d0b6591
commit 54af89f564

View File

@@ -50,6 +50,13 @@ gp_file_new (CameraFile **file)
(*file)->session = glob_session_file++;
(*file)->ref_count = 1;
(*file)->red_table = NULL;
(*file)->green_table = NULL;
(*file)->blue_table = NULL;
(*file)->red_size = 0;
(*file)->green_size = 0;
(*file)->blue_size = 0;
return (GP_OK);
}