summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vxi11_server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vxi11_server.c b/vxi11_server.c
index f8aa439..a272e1e 100644
--- a/vxi11_server.c
+++ b/vxi11_server.c
@@ -176,7 +176,7 @@ device_read_1_svc(Device_ReadParms *argp, struct svc_req *rqstp) {
printf("device_read_1_svc()\n");
#endif
- if (result != NULL) {
+ if (result.data.data_val != NULL) {
free(result.data.data_val);
result.data.data_val = NULL;
result.data.data_len = 0;