From 54af89f5643e16f61fb76a318e1aa6c8f7dc9907 Mon Sep 17 00:00:00 2001 From: Lutz Mueller Date: Sun, 26 Aug 2001 10:47:21 +0000 Subject: [PATCH] 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 --- libgphoto2/file.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libgphoto2/file.c b/libgphoto2/file.c index bc0bb72c8..2d4ec0079 100644 --- a/libgphoto2/file.c +++ b/libgphoto2/file.c @@ -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); }