summaryrefslogtreecommitdiff
path: root/camlibs/samsung
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <gp@n-dimensional.de>2002-01-02 00:29:10 +0000
committerHans Ulrich Niedermann <gp@n-dimensional.de>2002-01-02 00:29:10 +0000
commitea05eaa71c9eb7013dff281f2ea1c32e0390e97b (patch)
tree5e4dfa73f22970598889dbe7484668bd55f0ef52 /camlibs/samsung
parenteecdec11530a277f730b4a0256ba3cec213eb1e7 (diff)
downloadlibgphoto2-ea05eaa71c9eb7013dff281f2ea1c32e0390e97b.tar.gz
Added missing initialization of CameraAbilities struct. This fixes corrupt
abilities reported to libphoto2. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3642 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'camlibs/samsung')
-rw-r--r--camlibs/samsung/samsung.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/camlibs/samsung/samsung.c b/camlibs/samsung/samsung.c
index b48b12e3a..e7970e100 100644
--- a/camlibs/samsung/samsung.c
+++ b/camlibs/samsung/samsung.c
@@ -142,6 +142,7 @@ camera_abilities (CameraAbilitiesList *list)
CameraAbilities a;
for (i = 0; models[i].model; i++) {
+ memset (&a, 0, sizeof(a));
memset(&a, 0, sizeof(a));
strcpy (a.model, models[i].model);