Consistently allocate device and iface variables on the heap.
[oweals/tinc.git] / src / uml_socket / device.c
index a7a70fb380a895cb42d72d8ce7e70f933c0d40cd..f81c88f63923840fb22b052081334fbd5f3c2c88 100644 (file)
@@ -36,9 +36,9 @@ static int request_fd = -1;
 static int data_fd = -1;
 static int write_fd = -1;
 static int state = 0;
-char *device;
+char *device = NULL;
 char *iface = NULL;
-char *device_info;
+static char *device_info;
 
 extern char *identname;
 extern bool running;