Skip to contentSkip to conversation

: global variables are automatically initialized to 0

PATCH New Juan Quintela 1 participant 1 message Dec 19, 2002 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : global variables are automatically initialized to 0

Hi
globals are already initialized to 0.

Later, Juan.

Index: drivers/sgi/char/sgicons.c
===================================================================
RCS file: /home/cvs/linux/drivers/sgi/char/sgicons.c,v retrieving revision 1.13.2.1

sgi/char/sgicons.c +2 -2
diff -u -r1.13.2.1 sgicons.c
@@ -14,8 +14,8 @@
 #include "gconsole.h"
 
 /* This is the system graphics console (the first adapter found) */
-struct console_ops *gconsole = 0;
-struct console_ops *real_gconsole = 0;
+struct console_ops *gconsole;
+struct console_ops *real_gconsole;
 
 void
 enable_gconsole (void)
Signature · 2 lines
In theory, practice and theory are the same, but in practice they 
are different -- Larry McVoy