Skip to content

Commit

Permalink
eliminate gcc warning for count var
Browse files Browse the repository at this point in the history
  • Loading branch information
jjallaire committed Dec 10, 2011
1 parent 0e0d749 commit e9b19ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpp/session/modules/SessionGit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1634,7 +1634,7 @@ Error vcsHistoryCount(const json::JsonRpcRequest& request,

boost::algorithm::trim(searchText);

int count;
int count = 0;
error = s_git_.logLength(rev, fileFilter, searchText, &count);
if (error)
return error;
Expand Down

0 comments on commit e9b19ed

Please sign in to comment.