* libgphoto2/gphoto2-filesys.c: memset() filesys to 0 so

we do not forget to initialize members. (sf bug #549958)


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4483 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
Marcus Meissner
2002-04-30 06:26:55 +00:00
parent c66d3ef2ad
commit fa2bb7eecc
2 changed files with 6 additions and 13 deletions

View File

@@ -1,3 +1,8 @@
2002-04-30 Marcus Meissner <marcus@jet.franken.de>
* libgphoto2/gphoto2-filesys.c: memset() filesys to 0 so
we do not forget to initialize members. (sf bug #549958)
2002-04-28 Lutz Müller <lutz@users.sourceforge.net>
* frontends/command-line/main.c: %s/licence/license

View File

@@ -438,19 +438,7 @@ gp_filesystem_new (CameraFilesystem **fs)
CHECK_MEM (*fs = malloc (sizeof (CameraFilesystem)));
(*fs)->folder = NULL;
(*fs)->count = 0;
(*fs)->set_info_func = NULL;
(*fs)->get_info_func = NULL;
(*fs)->info_data = NULL;
(*fs)->file_list_func = NULL;
(*fs)->folder_list_func = NULL;
(*fs)->list_data = NULL;
(*fs)->get_file_func = NULL;
(*fs)->file_data = NULL;
memset(*fs,0,sizeof(CameraFilesystem));
result = append_folder (*fs, "/", NULL);
if (result != GP_OK) {