diff options
author | Vicent Martà <vicent@github.com> | 2012-12-05 14:07:27 -0800 |
---|---|---|
committer | Vicent Martà <vicent@github.com> | 2012-12-05 14:07:27 -0800 |
commit | d9a5009ea6ae980bb3770055aa54c05a5164bcb0 (patch) | |
tree | f69a828567929edff5c900ecb56e32c318bb3f17 /src/diff.c | |
parent | a9c07c47ea6efd95f6e26639d85bbd60aa407c42 (diff) | |
parent | 32770c52a81091bb2ddbc3cbf8926ecdd4b10687 (diff) | |
download | libgit2-d9a5009ea6ae980bb3770055aa54c05a5164bcb0.tar.gz |
Merge pull request #1120 from arrbee/diff-header-fixes
Fix diff header comments and missing const
Diffstat (limited to 'src/diff.c')
-rw-r--r-- | src/diff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diff.c b/src/diff.c index 46d96bb96..c4bfc3687 100644 --- a/src/diff.c +++ b/src/diff.c @@ -285,7 +285,7 @@ static git_diff_list *git_diff_list_alloc( goto fail; if (diff->opts.flags & GIT_DIFF_REVERSE) { - char *swap = diff->opts.old_prefix; + const char *swap = diff->opts.old_prefix; diff->opts.old_prefix = diff->opts.new_prefix; diff->opts.new_prefix = swap; } |