]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
blob.c: Don't initialize table pointer in table->init().
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 14 Mar 2022 22:51:46 +0000 (23:51 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 17 Oct 2022 18:36:21 +0000 (20:36 +0200)
This is a global variable which is guaranteed to be zeroed by the
compiler.

blob.c

diff --git a/blob.c b/blob.c
index eb9ccabacad41ea39a3c1a7b391e35f351a48ce4..70d55236ad3b3b932f8e93aef68ed2a316ae9076 100644 (file)
--- a/blob.c
+++ b/blob.c
@@ -625,7 +625,6 @@ static int blob_open(struct osl_table **table,
                        &table_name ## _table_desc, dir); \
        }
 
-
 /** Define the \p init function for this blob type. */
 #define DEFINE_BLOB_INIT(table_name) \
        void table_name ## _init(struct afs_table *t) \
@@ -634,10 +633,8 @@ static int blob_open(struct osl_table **table,
                t->close = table_name ## _close; \
                t->create = table_name ## _create;\
                t->event_handler = table_name ##_event_handler; \
-               table_name ## _table = NULL; \
        }
 
-
 /** Define all functions for this blob type. */
 #define DEFINE_BLOB_FUNCTIONS(table_name, short_name, c_short_name) \
        DEFINE_BLOB_OPEN(table_name) \