summaryrefslogtreecommitdiff
path: root/libvxi11client/libvxi11client.c
diff options
context:
space:
mode:
authordaniel <danieruru@gmail.com>2013-01-09 14:25:02 +0900
committerdaniel <danieruru@gmail.com>2013-01-09 14:25:02 +0900
commit4d177908c1c68bedb01fb0c9146b06b249fd1b5e (patch)
tree8eb50b1e99b133bb4ad404d4f7cea11def3f7a34 /libvxi11client/libvxi11client.c
parentee9413282d02d936185dc88a34bb817a1a273e6d (diff)
More clean ups, add some more tests
Diffstat (limited to 'libvxi11client/libvxi11client.c')
-rw-r--r--libvxi11client/libvxi11client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvxi11client/libvxi11client.c b/libvxi11client/libvxi11client.c
index ba7d7b4..4e3efd0 100644
--- a/libvxi11client/libvxi11client.c
+++ b/libvxi11client/libvxi11client.c
@@ -41,7 +41,7 @@ int vxi11_open(char* address, char* device) {
link_parms.clientId = (long) clnt;
link_parms.lockDevice = 0;
link_parms.lock_timeout = VXI11_DEFAULT_TIMEOUT;
- link_parms.device = device;
+ link_parms.device = device != NULL ? device : "device0";
Create_LinkResp* linkresp = create_link_1(&link_parms, clnt);
if (linkresp != NULL && linkresp->error == 0) {