]> ruderich.org/simon Gitweb - coloredstderr/coloredstderr.git/blobdiff - src/trackfds.h
Fix initialization if ENV_NAME_FDS was not set.
[coloredstderr/coloredstderr.git] / src / trackfds.h
index 474b072d2026d9eee0faeb4505529f2d06a2fa9f..e342b1223394e1a8fc9b4c28178ac44f478ddc3b 100644 (file)
@@ -34,6 +34,7 @@ static size_t tracked_fds_space;
  * ENV_NAME_FDS has the following format: Each descriptor as string followed
  * by a comma; there's a trailing comma. Example: "2,4,". */
 static void init_from_environment(void) {
+    initialized = 1;
     tracked_fds_count = 0;
 
     const char *env = getenv(ENV_NAME_FDS);