Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
a2239c2b
Commit
a2239c2b
authored
Feb 24, 2013
by
KIU Shueng Chuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
squash mingw variable set but not used warning
parent
d3c02331
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
mongoose.c
mongoose.c
+1
-4
No files found.
mongoose.c
View file @
a2239c2b
...
@@ -1018,14 +1018,11 @@ static void change_slashes_to_backslashes(char *path) {
...
@@ -1018,14 +1018,11 @@ static void change_slashes_to_backslashes(char *path) {
// Encode 'path' which is assumed UTF-8 string, into UNICODE string.
// Encode 'path' which is assumed UTF-8 string, into UNICODE string.
// wbuf and wbuf_len is a target buffer and its length.
// wbuf and wbuf_len is a target buffer and its length.
static
void
to_unicode
(
const
char
*
path
,
wchar_t
*
wbuf
,
size_t
wbuf_len
)
{
static
void
to_unicode
(
const
char
*
path
,
wchar_t
*
wbuf
,
size_t
wbuf_len
)
{
char
buf
[
PATH_MAX
],
buf2
[
PATH_MAX
]
,
*
p
;
char
buf
[
PATH_MAX
],
buf2
[
PATH_MAX
];
mg_strlcpy
(
buf
,
path
,
sizeof
(
buf
));
mg_strlcpy
(
buf
,
path
,
sizeof
(
buf
));
change_slashes_to_backslashes
(
buf
);
change_slashes_to_backslashes
(
buf
);
// Point p to the end of the file name
p
=
buf
+
strlen
(
buf
)
-
1
;
// Convert to Unicode and back. If doubly-converted string does not
// Convert to Unicode and back. If doubly-converted string does not
// match the original, something is fishy, reject.
// match the original, something is fishy, reject.
memset
(
wbuf
,
0
,
wbuf_len
*
sizeof
(
wchar_t
));
memset
(
wbuf
,
0
,
wbuf_len
*
sizeof
(
wchar_t
));
...
...
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