summaryrefslogtreecommitdiff
path: root/camlibs/template
diff options
context:
space:
mode:
authorJohannes Erdfelt <johannes@erdfelt.com>2001-12-30 18:19:10 +0000
committerJohannes Erdfelt <johannes@erdfelt.com>2001-12-30 18:19:10 +0000
commit3b234b95cc69a91e5a1e9b622592e09ead626a88 (patch)
tree55e9aa65cb4601478f542746520fb4f58c8a6bce /camlibs/template
parent6c4132cd879112cbdcfc5de75f4920e4b3ed00e8 (diff)
downloadlibgphoto2-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/template')
-rw-r--r--camlibs/template/template.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/camlibs/template/template.c b/camlibs/template/template.c
index 7846cb606..06a7786ad 100644
--- a/camlibs/template/template.c
+++ b/camlibs/template/template.c
@@ -49,6 +49,7 @@ camera_abilities (CameraAbilitiesList *list)
{
CameraAbilities a;
+ memset(&a, 0, sizeof(a));
strcpy(a.model, "CAMERA MODEL");
a.status = GP_DRIVER_STATUS_PRODUCTION;
a.port = GP_PORT_SERIAL | GP_PORT_USB;