Per suggestion from Vladimir, no need to initialize these -- let the bss
authorEric Andersen <andersen@codepoet.org>
Mon, 19 Mar 2001 19:28:24 +0000 (19:28 -0000)
committerEric Andersen <andersen@codepoet.org>
Mon, 19 Mar 2001 19:28:24 +0000 (19:28 -0000)
do it.
 -Erik

insmod.c
modutils/insmod.c

index 5391c8804990d07983bd61ed5ffa68c4aec8339a..fe4e06a6caaf4d0edb0ef98209359c8a32f1ff8e 100644 (file)
--- a/insmod.c
+++ b/insmod.c
 #ifndef MODUTILS_MODULE_H
 static const int MODUTILS_MODULE_H = 1;
 
-#ident "$Id: insmod.c,v 1.51 2001/03/12 23:08:34 markw Exp $"
+#ident "$Id: insmod.c,v 1.52 2001/03/19 19:28:24 andersen Exp $"
 
 /* This file contains the structures used by the 2.0 and 2.1 kernels.
    We do not use the kernel headers directly because we do not wish
@@ -325,7 +325,7 @@ int delete_module(const char *);
 #ifndef MODUTILS_OBJ_H
 static const int MODUTILS_OBJ_H = 1;
 
-#ident "$Id: insmod.c,v 1.51 2001/03/12 23:08:34 markw Exp $"
+#ident "$Id: insmod.c,v 1.52 2001/03/19 19:28:24 andersen Exp $"
 
 /* The relocatable object is manipulated using elfin types.  */
 
@@ -714,8 +714,8 @@ unsigned long create_module(const char *name, size_t size)
 #else
 _syscall2(unsigned long, create_module, const char *, name, size_t, size)
 #endif
-static char m_filename[BUFSIZ + 1] = "\0";
-static char m_fullName[BUFSIZ + 1] = "\0";
+static char m_filename[BUFSIZ + 1];
+static char m_fullName[BUFSIZ + 1];
 
 /*======================================================================*/
 
index 5391c8804990d07983bd61ed5ffa68c4aec8339a..fe4e06a6caaf4d0edb0ef98209359c8a32f1ff8e 100644 (file)
 #ifndef MODUTILS_MODULE_H
 static const int MODUTILS_MODULE_H = 1;
 
-#ident "$Id: insmod.c,v 1.51 2001/03/12 23:08:34 markw Exp $"
+#ident "$Id: insmod.c,v 1.52 2001/03/19 19:28:24 andersen Exp $"
 
 /* This file contains the structures used by the 2.0 and 2.1 kernels.
    We do not use the kernel headers directly because we do not wish
@@ -325,7 +325,7 @@ int delete_module(const char *);
 #ifndef MODUTILS_OBJ_H
 static const int MODUTILS_OBJ_H = 1;
 
-#ident "$Id: insmod.c,v 1.51 2001/03/12 23:08:34 markw Exp $"
+#ident "$Id: insmod.c,v 1.52 2001/03/19 19:28:24 andersen Exp $"
 
 /* The relocatable object is manipulated using elfin types.  */
 
@@ -714,8 +714,8 @@ unsigned long create_module(const char *name, size_t size)
 #else
 _syscall2(unsigned long, create_module, const char *, name, size_t, size)
 #endif
-static char m_filename[BUFSIZ + 1] = "\0";
-static char m_fullName[BUFSIZ + 1] = "\0";
+static char m_filename[BUFSIZ + 1];
+static char m_fullName[BUFSIZ + 1];
 
 /*======================================================================*/