visa: Fixed missing header warnings/uninitialized variable.

This commit is contained in:
Matthias Heidbrink 2014-03-08 10:56:16 +01:00
parent d1d3b7dff9
commit dc05dd6069
2 changed files with 3 additions and 1 deletions

View 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);

View File

@ -21,6 +21,8 @@
*/
#include <rpc/rpc.h>
#include <string.h>
#include "vxi.h"
#include "libsigrok.h"
#include "libsigrok-internal.h"