Optimized away a call to cmp_modtime() for a compare-dest file.
[rsync.git] / generator.c
index fa2d9eab9e4711bcf36121b1221cd3ccbcabd41e..84958b82e3ca5b848afdac98f00713f0ada73051 100644 (file)
@@ -482,7 +482,8 @@ void recv_generator(char *fname, struct file_struct *file, int i, int f_out)
                return;
        }
 
-       if (update_only && cmp_modtime(st.st_mtime,file->modtime)>0 && fnamecmp == fname) {
+       if (update_only && fnamecmp == fname
+           && cmp_modtime(st.st_mtime, file->modtime) > 0) {
                if (verbose > 1)
                        rprintf(FINFO,"%s is newer\n",fname);
                return;