From b5c41f48cb47e88303f687caf8b039972c00e0d1 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 14 Mar 2022 23:51:46 +0100 Subject: [PATCH] blob.c: Don't initialize table pointer in table->init(). This is a global variable which is guaranteed to be zeroed by the compiler. --- blob.c | 3 --- 1 file changed, 3 deletions(-) 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) \ -- 2.39.5