aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2005-04-17 18:51:03 +0000
committerWarren Dukes <warren.dukes@gmail.com>2005-04-17 18:51:03 +0000
commitb1122062de7a53215d23624a0a4f77795c8b7ae3 (patch)
tree834ba4a663a505c271f39f184b38992b42355332 /src
parente5b23e37f1c24571eac606aedf902fd5c0abda22 (diff)
downloadmpd-b1122062de7a53215d23624a0a4f77795c8b7ae3.tar.gz
mpd-b1122062de7a53215d23624a0a4f77795c8b7ae3.tar.xz
mpd-b1122062de7a53215d23624a0a4f77795c8b7ae3.zip
fix some parsing of http_prebuffer_size
git-svn-id: https://svn.musicpd.org/mpd/trunk@3216 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/inputStream_http.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/inputStream_http.c b/src/inputStream_http.c
index 2fda41010..dbb6d82d3 100644
--- a/src/inputStream_http.c
+++ b/src/inputStream_http.c
@@ -159,7 +159,7 @@ void inputStream_initHttp() {
if(param) {
prebufferSize = strtol(param->value, &test, 10);
- if(bufferSize <= 0 || *test != '\0') {
+ if(prebufferSize <= 0 || *test != '\0') {
ERROR("\"%s\" specified for %s at line %i is not a "
"positivie intenger\n",
param->value, CONF_HTTP_PREBUFFER_SIZE,
@@ -168,9 +168,9 @@ void inputStream_initHttp() {
}
prebufferSize *= 1024;
-
- if(prebufferSize > bufferSize) bufferSize = prebufferSize;
}
+
+ if(prebufferSize > bufferSize) prebufferSize = bufferSize;
}
/* base64 code taken from xmms */