From: Jon Trulson Date: Wed, 11 Apr 2018 21:50:43 +0000 (-0600) Subject: dtfile/Directory: CID 88835,89096,89446,89469,89498 X-Git-Tag: 2.2.4a~97 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3ba5c25a55f2daf50f8318454f97f7bc2ea7e0fc;p=oweals%2Fcde.git dtfile/Directory: CID 88835,89096,89446,89469,89498 --- diff --git a/cde/programs/dtfile/Directory.c b/cde/programs/dtfile/Directory.c index 618a4b9c..93a55b43 100644 --- a/cde/programs/dtfile/Directory.c +++ b/cde/programs/dtfile/Directory.c @@ -2016,6 +2016,9 @@ UpdateAllProcess( pipe_msg = PIPEMSG_DONE; write(pipe_fd, &pipe_msg, sizeof(short)); write(pipe_fd, &modify_time, sizeof(long)); + + if (dirp) + closedir(dirp); return 0; } @@ -2145,7 +2148,7 @@ ReaddirPipeCallback( char *err_msg; int i, n; int rc; - long modify_time; + long modify_time = 0; char dirname[MAX_PATH]; short file_data_count; @@ -4787,13 +4790,13 @@ ScheduleDirectoryActivity( Boolean this_view_active; int i, j, k; int n_active, n_checking; - int save_last_check; + int save_last_check = 0; FileMgrData *file_mgr_data; Boolean sticky; StickyProcDesc *p; - int pipe_s2m_fd[2]; /* for msgs from backgroundnd proc (slave to master) */ - int pipe_m2s_fd[2]; /* for msgs to backgroundnd proc (master to slave) */ - pid_t pid; + int pipe_s2m_fd[2] = {-1, -1}; /* for msgs from backgroundnd proc (slave to master) */ + int pipe_m2s_fd[2] = {-1, -1}; /* for msgs to backgroundnd proc (master to slave) */ + pid_t pid = 0; char *s; int rc;