From: Simon Ruderich Date: Sun, 7 Jul 2013 10:54:59 +0000 (+0200) Subject: Add missing assert() to init_from_environment(). X-Git-Tag: 0.1~9 X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=9ff0ffbd28416538a4ccc2445875339c7eb20dfe;p=coloredstderr%2Fcoloredstderr.git Add missing assert() to init_from_environment(). --- diff --git a/src/trackfds.h b/src/trackfds.h index 30693f4..5720b0c 100644 --- a/src/trackfds.h +++ b/src/trackfds.h @@ -83,6 +83,8 @@ static void init_from_environment(void) { int saved_errno = errno; + assert(!initialized); + initialized = 1; tracked_fds_list_count = 0;