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
3edd4a24
Commit
3edd4a24
authored
Feb 02, 2012
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update_walk: use directory_make_child()
parent
535a61b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
update_walk.c
src/update_walk.c
+2
-5
No files found.
src/update_walk.c
View file @
3edd4a24
...
...
@@ -344,11 +344,8 @@ update_archive_tree(struct directory *directory, char *name)
if
(
tmp
)
{
*
tmp
=
0
;
//add dir is not there already
if
((
subdir
=
directory_get_child
(
directory
,
name
))
==
NULL
)
{
//create new directory
subdir
=
directory_new_child
(
directory
,
name
);
subdir
->
device
=
DEVICE_INARCHIVE
;
}
subdir
=
directory_make_child
(
directory
,
name
);
subdir
->
device
=
DEVICE_INARCHIVE
;
//create directories first
update_archive_tree
(
subdir
,
tmp
+
1
);
}
else
{
...
...
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