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
aa487e6c
Commit
aa487e6c
authored
Aug 20, 2006
by
Avuton Olrich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
This fixes 5 potential bugs where the conditional would always be true.
git-svn-id:
https://svn.musicpd.org/mpd/trunk@4659
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
54a1a9f2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
charConv.c
src/charConv.c
+1
-1
_ogg_common.c
src/inputPlugins/_ogg_common.c
+1
-1
aac_plugin.c
src/inputPlugins/aac_plugin.c
+2
-2
myfprintf.c
src/myfprintf.c
+1
-1
No files found.
src/charConv.c
View file @
aa487e6c
...
...
@@ -122,7 +122,7 @@ char *convStrDup(char *string)
iconv
(
char_conv_iconv
,
&
string
,
&
inleft
,
&
bufferPtr
,
&
outleft
);
if
(
outleft
==
BUFFER_SIZE
||
(
err
<
0
&&
errno
!=
E2BIG
))
{
||
(
err
==
-
1L
&&
errno
!=
E2BIG
))
{
free
(
ret
);
return
NULL
;
}
...
...
src/inputPlugins/_ogg_common.c
View file @
aa487e6c
...
...
@@ -40,7 +40,7 @@ ogg_stream_type ogg_stream_type_detect(InputStream * inStream)
while
(
to_read
)
{
r
=
readFromInputStream
(
inStream
,
buf
,
1
,
to_read
);
if
(
r
<
0
)
if
(
r
<
inStream
->
error
)
break
;
to_read
-=
r
;
if
(
!
r
&&
!
inputStreamAtEOF
(
inStream
))
...
...
src/inputPlugins/aac_plugin.c
View file @
aa487e6c
...
...
@@ -239,7 +239,7 @@ static float getAacFloatTotalTime(char *file)
unsigned
int
sampleRate
;
unsigned
char
channels
;
InputStream
inStream
;
size_t
bread
;
long
bread
;
if
(
openInputStream
(
&
inStream
,
file
)
<
0
)
return
-
1
;
...
...
@@ -291,7 +291,7 @@ static int aac_decode(OutputBuffer * cb, DecoderControl * dc, char *path)
faacDecHandle
decoder
;
faacDecFrameInfo
frameInfo
;
faacDecConfigurationPtr
config
;
size_t
bread
;
long
bread
;
unsigned
int
sampleRate
;
unsigned
char
channels
;
int
eof
=
0
;
...
...
src/myfprintf.c
View file @
aa487e6c
...
...
@@ -36,7 +36,7 @@
static
void
blockingWrite
(
const
int
fd
,
const
char
*
string
,
size_t
len
)
{
while
(
len
)
{
size_t
ret
=
xwrite
(
fd
,
string
,
len
);
s
s
ize_t
ret
=
xwrite
(
fd
,
string
,
len
);
if
(
ret
==
len
)
return
;
if
(
ret
>=
0
)
{
...
...
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