diff --git a/diffcore-pickaxe.c b/diffcore-pickaxe.c
index d89f314f6d809ebfdfd95104fc653bbfe048b669..c4a77d71da5602b68c541c2487fcbecfdfff2944 100644 (file)
--- a/diffcore-pickaxe.c
+++ b/diffcore-pickaxe.c
/*
* Copyright (C) 2005 Junio C Hamano
*/
/*
* Copyright (C) 2005 Junio C Hamano
*/
-#include <regex.h>
-
#include "cache.h"
#include "diff.h"
#include "diffcore.h"
#include "cache.h"
#include "diff.h"
#include "diffcore.h"
const char *data;
if (diff_populate_filespec(one, 0))
return 0;
const char *data;
if (diff_populate_filespec(one, 0))
return 0;
+ if (!len)
+ return 0;
sz = one->size;
data = one->data;
sz = one->size;
data = one->data;
}
}
}
}
}
}
+ diff_free_filespec_data(one);
return cnt;
}
return cnt;
}