diff.c: readability fix

We already have dereferenced 'p->two' into a local variable 'two'. Use that. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Stefan Beller committed Jun 29, 2017 at 17:06 UTC f2d2a5def088b474586eedfa4fa547bc2c955bb9
1 file changed +2 -2
diff.c
+2 -2
@@ -3282,8 +3282,8 @@ static void run_diff(struct diff_filepair *p, struct diff_options *o)
3282 const char *other;
3283 const char *attr_path;
3284
3285 - name = p->one->path;
3286 - other = (strcmp(name, p->two->path) ? p->two->path : NULL);
3285 + name = one->path;
3286 + other = (strcmp(name, two->path) ? two->path : NULL);
3287 attr_path = name;
3288 if (o->prefix_length)
3289 strip_prefix(o->prefix_length, &name, &other);