git-p4: add read_pipe_text() internal function
[gitweb.git] / merge-recursive.c
index d3272094430ccd3914c8214df73ba8e11363cfa7..b7ff1ada3c350dce75ff09709395e97a60c96b96 100644 (file)
@@ -1390,14 +1390,11 @@ static int process_renames(struct merge_options *o,
                        branch1 = o->branch1;
                        branch2 = o->branch2;
                } else {
-                       struct rename *tmp;
                        renames1 = b_renames;
                        renames2Dst = &a_by_dst;
                        branch1 = o->branch2;
                        branch2 = o->branch1;
-                       tmp = ren2;
-                       ren2 = ren1;
-                       ren1 = tmp;
+                       SWAP(ren2, ren1);
                }
 
                if (ren1->processed)