diff options
author | Johannes Erdfelt <johannes@erdfelt.com> | 2001-12-30 18:19:10 +0000 |
---|---|---|
committer | Johannes Erdfelt <johannes@erdfelt.com> | 2001-12-30 18:19:10 +0000 |
commit | 3b234b95cc69a91e5a1e9b622592e09ead626a88 (patch) | |
tree | 55e9aa65cb4601478f542746520fb4f58c8a6bce /camlibs/sonydscf1 | |
parent | 6c4132cd879112cbdcfc5de75f4920e4b3ed00e8 (diff) | |
download | libgphoto2-3b234b95cc69a91e5a1e9b622592e09ead626a88.tar.gz |
Zero out the CameraAbilities struct so we don't have garbage in fields
This should help fix some of the problems with the new USB class matching
code people have reported
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3628 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'camlibs/sonydscf1')
-rw-r--r-- | camlibs/sonydscf1/sonydscf1.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/camlibs/sonydscf1/sonydscf1.c b/camlibs/sonydscf1/sonydscf1.c index 399c5a9ef..12707d24d 100644 --- a/camlibs/sonydscf1/sonydscf1.c +++ b/camlibs/sonydscf1/sonydscf1.c @@ -43,6 +43,7 @@ int camera_abilities (CameraAbilitiesList *list) { /* Fill in each camera model's abilities */ /* Make separate entries for each conneciton type (usb, serial, etc...) if a camera supported multiple ways. */ + memset(&a, 0, sizeof(a)); strcpy(a.model, "Sony DSC-F1"); a.status = GP_DRIVER_STATUS_PRODUCTION; a.port=GP_PORT_SERIAL; |