]> sigrok.org Git - libsigrok.git/commitdiff
visa: Fixed missing header warnings/uninitialized variable.
authorMatthias Heidbrink <redacted>
Sat, 8 Mar 2014 09:56:16 +0000 (10:56 +0100)
committerMatthias Heidbrink <redacted>
Sat, 8 Mar 2014 09:56:16 +0000 (10:56 +0100)
hardware/common/scpi_visa.c
hardware/common/scpi_vxi.c

index 2e7e26fdcc3adcd4c2742b6dc1a86f2fcb925241..1db85d826925f7e8d0730607d054cfc57ff828c3 100644 (file)
@@ -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);
index 4bdb6ab9ebb799067a4a6c375b368db64e78cc95..767303b5f8d45ce7efd84de645d9916b0c3fbf0f 100644 (file)
@@ -21,6 +21,8 @@
  */
 
 #include <rpc/rpc.h>
+#include <string.h>
+
 #include "vxi.h"
 #include "libsigrok.h"
 #include "libsigrok-internal.h"