Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
15f52ae1
Commit
15f52ae1
authored
Dec 19, 2011
by
schu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
config_file: fix clang sizeof-pointer-memaccess
parent
6d39c0dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
src/config_file.c
+1
-1
No files found.
src/config_file.c
View file @
15f52ae1
...
@@ -738,7 +738,7 @@ error:
...
@@ -738,7 +738,7 @@ error:
static
int
skip_bom
(
diskfile_backend
*
cfg
)
static
int
skip_bom
(
diskfile_backend
*
cfg
)
{
{
static
const
char
*
utf8_bom
=
"
\xef\xbb\xbf
"
;
static
const
char
utf8_bom
[]
=
"
\xef\xbb\xbf
"
;
if
(
cfg
->
reader
.
buffer
.
len
<
sizeof
(
utf8_bom
))
if
(
cfg
->
reader
.
buffer
.
len
<
sizeof
(
utf8_bom
))
return
GIT_SUCCESS
;
return
GIT_SUCCESS
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment