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
08c13220
Commit
08c13220
authored
Oct 09, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: never pass root path to updatePath()
update_task() already checks if it has got a root path. Extend this check and in turn remove a check in the inner function updatePath().
parent
6b9ffcff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
update.c
src/update.c
+1
-6
No files found.
src/update.c
View file @
08c13220
...
...
@@ -392,11 +392,6 @@ static enum update_return updatePath(const char *path)
directory_sort
(
directory
);
return
ret
;
}
/* we don't want to delete the root directory */
else
if
(
directory
==
db_get_root
())
{
clear_directory
(
directory
);
return
UPDATE_RETURN_NOUPDATE
;
}
/* if updateDirectory fails, means we should delete it */
else
{
LOG
(
"removing directory: %s
\n
"
,
path
);
...
...
@@ -456,7 +451,7 @@ static void * update_task(void *_path)
{
enum
update_return
ret
=
UPDATE_RETURN_NOUPDATE
;
if
(
_path
)
{
if
(
_path
!=
NULL
&&
!
isRootDirectory
(
_path
)
)
{
ret
=
updatePath
((
char
*
)
_path
);
free
(
_path
);
}
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