From 877e3cfbb05f465ad18a4fdcc5d89ba59b34b629 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Wed, 17 Jun 2009 15:07:38 +0000 Subject: [PATCH] Remove unnecessary =NULL initialization of static pointers. --- ot_accesslist.c | 2 +- ot_mutex.c | 2 +- ot_stats.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ot_accesslist.c b/ot_accesslist.c index 6ef7114..11e4317 100644 --- a/ot_accesslist.c +++ b/ot_accesslist.c @@ -22,7 +22,7 @@ /* GLOBAL VARIABLES */ #ifdef WANT_ACCESSLIST -char *g_accesslist_filename = NULL; +char *g_accesslist_filename; static ot_vector accesslist; static void accesslist_reset( void ) { diff --git a/ot_mutex.c b/ot_mutex.c index 2052ffa..772d936 100644 --- a/ot_mutex.c +++ b/ot_mutex.c @@ -123,7 +123,7 @@ struct ot_task { }; static ot_taskid next_free_taskid = 1; -static struct ot_task *tasklist = NULL; +static struct ot_task *tasklist; static pthread_mutex_t tasklist_mutex; static pthread_cond_t tasklist_being_filled; diff --git a/ot_stats.c b/ot_stats.c index 2e745a4..7cbd1ce 100644 --- a/ot_stats.c +++ b/ot_stats.c @@ -82,7 +82,7 @@ union stats_network_node { }; #ifdef WANT_LOG_NETWORKS -static stats_network_node *stats_network_counters_root = NULL; +static stats_network_node *stats_network_counters_root; #endif static int stat_increase_network_count( stats_network_node **node, int depth, uintptr_t ip ) {