From 6c833fe4202f6b80bf23617c75d345d0c77a5c6f Mon Sep 17 00:00:00 2001 From: Frank Li Date: Sun, 5 Sep 2010 13:24:40 +0800 Subject: [PATCH] Fix gitdll log crash because cmd_log_init add new parameter Signed-off-by: Frank Li --- ext/gitdll/gitdll.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ext/gitdll/gitdll.c b/ext/gitdll/gitdll.c index f14651e3b..e4992c516 100644 --- a/ext/gitdll/gitdll.c +++ b/ext/gitdll/gitdll.c @@ -333,6 +333,7 @@ int git_open_log(GIT_LOG * handle, char * arg) char ** argv=0; int argc=0; int i=0; + struct setup_revision_opt opt; /* clear flags */ unsigned int obj_size = get_max_object_index(); @@ -355,7 +356,10 @@ int git_open_log(GIT_LOG * handle, char * arg) init_revisions(p_Rev, g_prefix); p_Rev->diff = 1; - cmd_log_init(argc, argv, g_prefix,p_Rev); + memset(&opt, 0, sizeof(opt)); + opt.def = "HEAD"; + + cmd_log_init(argc, argv, g_prefix,p_Rev,&opt); p_Rev->pPrivate = argv; *handle = p_Rev; -- 2.11.4.GIT