summaryrefslogtreecommitdiff
path: root/libvxi11client/libvxi11client.c
diff options
context:
space:
mode:
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) {