summaryrefslogtreecommitdiff
path: root/libgphoto2_port/libgphoto2_port
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2011-01-29 09:17:34 +0000
committerMarcus Meissner <marcus@jet.franken.de>2011-01-29 09:17:34 +0000
commite1c7909bf3f8f325879ff0dca48fc91939d86e1f (patch)
treea565829dec82fd978b0af1ca12915df1741e8012 /libgphoto2_port/libgphoto2_port
parent285aa178d4ab703d86d142e78654194706e93351 (diff)
downloadlibgphoto2-e1c7909bf3f8f325879ff0dca48fc91939d86e1f.tar.gz
init sense buffer
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@13503 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'libgphoto2_port/libgphoto2_port')
-rw-r--r--libgphoto2_port/libgphoto2_port/gphoto2-port.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libgphoto2_port/libgphoto2_port/gphoto2-port.c b/libgphoto2_port/libgphoto2_port/gphoto2-port.c
index 9b2b8d9b9..263dfc87d 100644
--- a/libgphoto2_port/libgphoto2_port/gphoto2-port.c
+++ b/libgphoto2_port/libgphoto2_port/gphoto2-port.c
@@ -1145,6 +1145,7 @@ int gp_port_send_scsi_cmd (GPPort *port, int to_dev,
CHECK_NULL (port);
CHECK_INIT (port);
+ memset (sense, 0, sense_size);
CHECK_SUPP (port, "send_scsi_cmd", port->pc->ops->send_scsi_cmd);
retval = port->pc->ops->send_scsi_cmd (port, to_dev, cmd, cmd_size,
sense, sense_size, data, data_size);