From: Andre Noll Date: Mon, 14 Mar 2022 22:51:46 +0000 (+0100) Subject: blob.c: Don't initialize table pointer in table->init(). X-Git-Tag: v0.7.2~14^2~17 X-Git-Url: http://git.tuebingen.mpg.de/?a=commitdiff_plain;ds=sidebyside;h=b5c41f48cb47e88303f687caf8b039972c00e0d1;p=paraslash.git blob.c: Don't initialize table pointer in table->init(). This is a global variable which is guaranteed to be zeroed by the compiler. --- diff --git a/blob.c b/blob.c index eb9ccaba..70d55236 100644 --- 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) \