Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
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
Chen Yisong
lxc
Commits
9913ac1b
Unverified
Commit
9913ac1b
authored
Feb 10, 2019
by
Stéphane Graber
Committed by
GitHub
Feb 10, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2839 from brauner/2019-02-10/handle_carriage_return
parse: handle \r
parents
b49c4e2d
8336d7be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
parse.c
src/lxc/parse.c
+1
-1
No files found.
src/lxc/parse.c
View file @
9913ac1b
...
@@ -131,7 +131,7 @@ int lxc_file_for_each_line_mmap(const char *file, lxc_file_cb callback, void *da
...
@@ -131,7 +131,7 @@ int lxc_file_for_each_line_mmap(const char *file, lxc_file_cb callback, void *da
}
}
ret
=
0
;
ret
=
0
;
lxc_iterate_parts
(
line
,
buf
,
"
\n\0
"
)
{
lxc_iterate_parts
(
line
,
buf
,
"
\
r\
n\0
"
)
{
ret
=
callback
(
line
,
data
);
ret
=
callback
(
line
,
data
);
if
(
ret
)
{
if
(
ret
)
{
/* Callback rv > 0 means stop here callback rv < 0 means
/* Callback rv > 0 means stop here callback rv < 0 means
...
...
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