Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r2501 - branches/fsvs-1.2.x/fsvs/src/update.c

fsvs
Discussion topic

Back to topic list

svn commit: r2501 - branches/fsvs-1.2.x/fsvs/src/update.c

Author pmarek
Full name P.Marek
Date 2018-06-06 04:07:31 PDT
Message Author: pmarek
Date: 2018-06-06 04:07:29-0700
New Revision: 2501

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

Log:
Move comparison with 'propval_special' after the NULL check.

Modified: branches/fsvs-1.2.x/​fsvs/src/update.c
Url: http://fsvs.tigris.o​rg/source/browse/fsv​s/branches/fsvs-1.2.​x/fsvs/src/update.c?​view=diff&pathre​v=2501&r1=2500​&r2=2501
====================​====================​====================​==================
--- branches/fsvs-1.2.x/​fsvs/src/update.c (original)
+++ branches/fsvs-1.2.x/​fsvs/src/update.c 2018-06-06 04:07:29-0700
@@ -188,14 +188,18 @@
 
     /* if an invalid utf8_value is detected, we'd better ignore it.
      * who knows which Pandora's box we'd open ... */
- if (0 == strcmp(utf8_name, propname_special) &&
- 0 == strcmp(utf8_value->data, propval_special))
+ if (0 == strcmp(utf8_name, propname_special))
     {
         if (!utf8_value) {
             sts->st.mode = (sts->st.mode & ~S_IFMT) | S_IFREG;
             DEBUGP("no longer special");
+ goto ex;
         }
- else if (TEST_PACKED(S_ISANYSPECIAL, sts->new_rev_mode_packed))
+
+ if (! strcmp(utf8_value->data, propval_special))
+ goto ex;
+
+ if (TEST_PACKED(S_ISANYSPECIAL, sts->new_rev_mode_packed))
         {
             DEBUGP("already marked as special");
         }

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

Messages

Show all messages in topic

svn commit: r2501 - branches/fsvs-1.2.x/fsvs/src/update.c pmarek P.Marek 2018-06-06 04:07:31 PDT
Messages per page: