Signed-off-by: Alexander Kuleshov <[email protected]>
---
builtin/cat-file.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/builtin/cat-file.c b/builtin/cat-file.c
index f8d8129..840ace2 100644
--- a/builtin/cat-file.c
+++ b/builtin/cat-file.c
@@ -17,14 +17,13 @@ static int cat_one_file(int opt, const char *exp_type,
const char *obj_name)
{
unsigned char sha1[20];
enum object_type type;
- char *buf;
+ char *buf = NULL;
unsigned long size;
struct object_context obj_context;
if (get_sha1_with_context(obj_name, 0, sha1, &obj_context))
die("Not a valid object name %s", obj_name);
- buf = NULL;
switch (opt) {
case 't':
type = sha1_object_info(sha1, NULL);
--
2.2.1.268.g1e6f5b2.dirty
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html