Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
161f7ced
Commit
161f7ced
authored
Oct 17, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ArchiveLookup: declare local variables later
parent
72bc11b1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
ArchiveLookup.cxx
src/ArchiveLookup.cxx
+4
-5
No files found.
src/ArchiveLookup.cxx
View file @
161f7ced
...
...
@@ -56,16 +56,15 @@ bool
archive_lookup
(
char
*
pathname
,
const
char
**
archive
,
const
char
**
inpath
,
const
char
**
suffix
)
{
char
*
pathdupe
;
int
len
,
idx
;
struct
stat
st_info
;
bool
ret
=
false
;
pathdupe
=
g_strdup
(
pathname
);
len
=
idx
=
strlen
(
pathname
);
char
*
const
pathdupe
=
g_strdup
(
pathname
);
const
size_t
len
=
strlen
(
pathname
);
size_t
idx
=
len
;
while
(
idx
>
0
)
{
//try to stat if its real directory
struct
stat
st_info
;
if
(
stat
(
pathdupe
,
&
st_info
)
==
-
1
)
{
if
(
errno
!=
ENOTDIR
)
{
FormatErrno
(
archive_domain
,
...
...
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