Commit Diff


commit - 7021523c6d7788c452572f0b48f0dcba23199dac
commit + 1ea185225fc4897fdfbe0043837b43ddab3f1449
blob - ed69c313f4ddb604d3cc46607cc371e59bdbc9ed
blob + 6d3c494aa3e129c1b4f0c594d10a4559ab39a750
--- lib/diff_atomize_text.c
+++ lib/diff_atomize_text.c
@@ -159,10 +159,10 @@ diff_data_atomize_text_lines_mmap(struct diff_data *d)
 static int
 diff_data_atomize_text_lines(struct diff_data *d)
 {
-	if (d->data == NULL)
-		return diff_data_atomize_text_lines_fd(d);
-	else
+	if (d->f == NULL)
 		return diff_data_atomize_text_lines_mmap(d);
+	else
+		return diff_data_atomize_text_lines_fd(d);
 }
 
 int