From: Matthias Heidbrink Date: Sat, 8 Mar 2014 09:56:16 +0000 (+0100) Subject: visa: Fixed missing header warnings/uninitialized variable. X-Git-Tag: libsigrok-0.3.0~126 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=dc05dd606999c1b5e73d8548145b3b32d209d29c;p=libsigrok.git visa: Fixed missing header warnings/uninitialized variable. --- diff --git a/hardware/common/scpi_visa.c b/hardware/common/scpi_visa.c index 2e7e26fd..1db85d82 100644 --- a/hardware/common/scpi_visa.c +++ b/hardware/common/scpi_visa.c @@ -87,7 +87,7 @@ static int scpi_visa_send(void *priv, const char *command) { struct scpi_visa *vscpi = priv; gchar *terminated_command; - ViUInt32 written; + ViUInt32 written = 0; int len; terminated_command = g_strconcat(command, "\n", NULL); diff --git a/hardware/common/scpi_vxi.c b/hardware/common/scpi_vxi.c index 4bdb6ab9..767303b5 100644 --- a/hardware/common/scpi_vxi.c +++ b/hardware/common/scpi_vxi.c @@ -21,6 +21,8 @@ */ #include +#include + #include "vxi.h" #include "libsigrok.h" #include "libsigrok-internal.h"