Explorar el Código

iniialize global bottom explizit with NULL

Jan Klemkow hace 6 años
padre
commit
0734cb7680
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      scroll.c

+ 1 - 1
scroll.c

@@ -49,7 +49,7 @@ struct line {
 	size_t size;
 	size_t len;
 	char *buf;
-} *bottom;
+} *bottom = NULL;
 
 pid_t child;
 int mfd;