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
402c8cd7
Commit
402c8cd7
authored
Oct 25, 2005
by
Eric Wong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug messages no longer cause segfaults :P
git-svn-id:
https://svn.musicpd.org/mpd/trunk@3553
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
f1d24a4b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
ls.c
src/ls.c
+3
-5
song.c
src/song.c
+1
-1
No files found.
src/ls.c
View file @
402c8cd7
...
@@ -278,11 +278,9 @@ InputPlugin * hasMusicSuffix(char * utf8file) {
...
@@ -278,11 +278,9 @@ InputPlugin * hasMusicSuffix(char * utf8file) {
InputPlugin
*
isMusic
(
char
*
utf8file
,
time_t
*
mtime
)
{
InputPlugin
*
isMusic
(
char
*
utf8file
,
time_t
*
mtime
)
{
if
(
isFile
(
utf8file
,
mtime
))
{
if
(
isFile
(
utf8file
,
mtime
))
{
InputPlugin
*
plugin
=
hasMusicSuffix
(
utf8file
);
InputPlugin
*
plugin
=
hasMusicSuffix
(
utf8file
);
if
(
plugin
==
NULL
)
{
if
(
plugin
!=
NULL
)
DEBUG
(
"isMusic: %s is not a supported music file
\n
"
);
return
plugin
;
}
return
plugin
;
}
}
DEBUG
(
"isMusic: %s is not a valid file
\n
"
,
utf8file
);
DEBUG
(
"isMusic: %s is not a valid file
\n
"
,
utf8file
);
return
NULL
;
return
NULL
;
...
...
src/song.c
View file @
402c8cd7
...
@@ -50,7 +50,7 @@ Song * newSong(char * url, int type, Directory * parentDir) {
...
@@ -50,7 +50,7 @@ Song * newSong(char * url, int type, Directory * parentDir) {
Song
*
song
=
NULL
;
Song
*
song
=
NULL
;
if
(
strchr
(
url
,
'\n'
))
{
if
(
strchr
(
url
,
'\n'
))
{
DEBUG
(
"newSong: '%s' is not a valid uri
\n
"
);
DEBUG
(
"newSong: '%s' is not a valid uri
\n
"
,
url
);
return
NULL
;
return
NULL
;
}
}
...
...
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