Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r2500 - branches/fsvs-1.2.x/fsvs/src/est_ops.c

fsvs
Discussion topic

Back to topic list

svn commit: r2500 - branches/fsvs-1.2.x/fsvs/src/est_ops.c

Author pmarek
Full name P.Marek
Date 2018-06-06 01:04:24 PDT
Message Author: pmarek
Date: 2018-06-06 01:04:17-0700
New Revision: 2500

Modified:
   branches/fsvs-1.2.x/​fsvs/src/est_ops.c

Log:
Fix uninitialized 'st.mode' condition for the 'parent removed' case.

Modified: branches/fsvs-1.2.x/​fsvs/src/est_ops.c
Url: http://fsvs.tigris.o​rg/source/browse/fsv​s/branches/fsvs-1.2.​x/fsvs/src/est_ops.c​?view=diff&pathr​ev=2500&r1=2499​&r2=2500
====================​====================​====================​==================
--- branches/fsvs-1.2.x/​fsvs/src/est_ops.c (original)
+++ branches/fsvs-1.2.x/​fsvs/src/est_ops.c 2018-06-06 01:04:17-0700
@@ -1346,7 +1346,7 @@
     if (sts->parent)
         if (sts->parent->​entry_status & FS_REMOVED)
         {
- goto removed;
+ goto removed_memset;
         }
 
     /* Check for current status */
@@ -1362,9 +1362,9 @@
         if (abs(status) != ENOENT)
             STOPIF(status, "cannot lstat(%s)", fullpath);
 
-removed:
         /* Re-set the values, if needed */
         if (st.mode)
+removed_memset:
             memset(&st, 0, sizeof(st));
 
         sts->entry_status​=FS_REMOVED;

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r2500 - branches/fsvs-1.2.x/fsvs/src/est_ops.c pmarek P.Marek 2018-06-06 01:04:24 PDT
Messages per page: