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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user