Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
R
rapidjson
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
rapidjson
Commits
49b1a127
Commit
49b1a127
authored
Jul 02, 2014
by
Milo Yip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes two other warning about unused fread() return value
parent
0815f056
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
encodedstreamtest.cpp
test/unittest/encodedstreamtest.cpp
+2
-2
filestreamtest.cpp
test/unittest/filestreamtest.cpp
+2
-2
No files found.
test/unittest/encodedstreamtest.cpp
View file @
49b1a127
...
...
@@ -47,8 +47,8 @@ protected:
*
outLength
=
(
size_t
)
ftell
(
fp
);
fseek
(
fp
,
0
,
SEEK_SET
);
char
*
buffer
=
(
char
*
)
malloc
(
*
outLength
+
1
);
fread
(
buffer
,
1
,
*
outLength
,
fp
);
buffer
[
*
out
Length
]
=
'\0'
;
size_t
readLength
=
fread
(
buffer
,
1
,
*
outLength
,
fp
);
buffer
[
read
Length
]
=
'\0'
;
fclose
(
fp
);
return
buffer
;
}
...
...
test/unittest/filestreamtest.cpp
View file @
49b1a127
...
...
@@ -20,8 +20,8 @@ public:
length_
=
(
size_t
)
ftell
(
fp
);
fseek
(
fp
,
0
,
SEEK_SET
);
json_
=
(
char
*
)
malloc
(
length_
+
1
);
fread
(
json_
,
1
,
length_
,
fp
);
json_
[
length_
]
=
'\0'
;
size_t
readLength
=
fread
(
json_
,
1
,
length_
,
fp
);
json_
[
readLength
]
=
'\0'
;
fclose
(
fp
);
}
...
...
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