Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
cptutils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
Show more breadcrumbs
J.J. Green
cptutils
Commits
4d85b7e7
Commit
4d85b7e7
authored
11 months ago
by
Dmitry Marakasov
Browse files
Options
Downloads
Patches
Plain Diff
Set errno to 0 before sscanf, as sscanf doesn't set it to 0 if there were no error
parent
3efdc7bc
No related branches found
No related tags found
1 merge request
!159
Set errno to 0 before sscanf, as sscanf doesn't set it to 0 if there were no error
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lib/cpt-read.c
+1
-0
1 addition, 0 deletions
src/lib/cpt-read.c
with
1 addition
and
0 deletions
src/lib/cpt-read.c
+
1
−
0
View file @
4d85b7e7
...
...
@@ -143,6 +143,7 @@ static int cpt_parse_comment(const char *line, cpt_t *cpt)
{
char
name
[
32
],
arg
[
32
];
errno
=
0
;
switch
(
sscanf
(
line
,
" %31s = %31s "
,
name
,
arg
))
{
case
0
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment