summaryrefslogtreecommitdiff
path: root/choose.c
diff options
context:
space:
mode:
Diffstat (limited to 'choose.c')
-rw-r--r--choose.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/choose.c b/choose.c
index 524b584..f313d8c 100644
--- a/choose.c
+++ b/choose.c
@@ -405,9 +405,9 @@ ProcessChooserSocket (int fd)
char buf[1024];
int len;
XdmcpBuffer buffer;
- ARRAY8 clientAddress;
+ ARRAY8 clientAddress = {0, NULL};
CARD16 connectionType;
- ARRAY8 choice;
+ ARRAY8 choice = {0, NULL};
#if defined(STREAMSCONN)
struct t_call *call;
int flags=0;
@@ -477,10 +477,6 @@ ProcessChooserSocket (int fd)
buffer.size = sizeof (buf);
buffer.count = len;
buffer.pointer = 0;
- clientAddress.data = NULL;
- clientAddress.length = 0;
- choice.data = NULL;
- choice.length = 0;
if (XdmcpReadARRAY8 (&buffer, &clientAddress)) {
if (XdmcpReadCARD16 (&buffer, &connectionType)) {
if (XdmcpReadARRAY8 (&buffer, &choice)) {