chiark / gitweb /
sd-device: initialize variable
[elogind.git] / src / test / test-pty.c
index cab569a9da78280c02612be3f599124529cade07..b5f4d4f0948e4c81147ada6659eaa141bfe4fb5b 100644 (file)
 ***/
 
 #include <errno.h>
-#include <fcntl.h>
 #include <locale.h>
 #include <string.h>
 #include <sys/wait.h>
 #include <unistd.h>
 
-#include "def.h"
 #include "pty.h"
 #include "util.h"
 
@@ -97,7 +95,7 @@ static void run_parent(Pty *pty) {
 
 static void test_pty(void) {
         pid_t pid;
-        Pty *pty;
+        Pty *pty = NULL;
 
         rcvsiz = 0;
         zero(rcvbuf);