diff --git a/diff-no-index.c b/diff-no-index.c
index 7273a7a0b648cc8cbd6dce2043a6e544b87d28b6..4ebc1dbd87d9b90ad2aaa5c7d4601761e2d1d724 100644 (file)
--- a/diff-no-index.c
+++ b/diff-no-index.c
if (!path || !strcmp(path, "/dev/null"))
*mode = 0;
+#ifdef _WIN32
+ else if (!strcasecmp(path, "nul"))
+ *mode = 0;
+#endif
else if (!strcmp(path, "-"))
*mode = create_ce_mode(0666);
else if (lstat(path, &st))
if (prefix) {
int len = strlen(prefix);
- revs->diffopt.paths = xcalloc(2, sizeof(char*));
+ revs->diffopt.paths = xcalloc(2, sizeof(char *));
for (i = 0; i < 2; i++) {
const char *p = argv[argc - 2 + i];
/*