]> ruderich.org/simon Gitweb - coloredstderr/coloredstderr.git/commitdiff
Add missing assert() to init_from_environment().
authorSimon Ruderich <simon@ruderich.org>
Sun, 7 Jul 2013 10:54:59 +0000 (12:54 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sun, 7 Jul 2013 10:54:59 +0000 (12:54 +0200)
src/trackfds.h

index 30693f47d1a07888bb578c665227f2ae3afc36d6..5720b0cca54cc6d159ec8d760d35ae5883878509 100644 (file)
@@ -83,6 +83,8 @@ static void init_from_environment(void) {
 
     int saved_errno = errno;
 
+    assert(!initialized);
+
     initialized = 1;
     tracked_fds_list_count = 0;