From e1c7909bf3f8f325879ff0dca48fc91939d86e1f Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sat, 29 Jan 2011 09:17:34 +0000 Subject: [PATCH] init sense buffer git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@13503 67ed7778-7388-44ab-90cf-0a291f65f57c --- libgphoto2_port/libgphoto2_port/gphoto2-port.c | 1 + 1 file changed, 1 insertion(+) 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);