Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
main: fix typo
[src/app-framework-binder.git]
/
plugins
/
audio
/
audio-api.c
diff --git
a/plugins/audio/audio-api.c
b/plugins/audio/audio-api.c
index
637f9d0
..
9c9da25
100644
(file)
--- a/
plugins/audio/audio-api.c
+++ b/
plugins/audio/audio-api.c
@@
-190,7
+190,7
@@
STATIC json_object* volume (AFB_request *request) { /* AFB_SESSION_CHECK */
volume_i = strtok (volume_i, ",");
volume[0] = atoi (volume_i);
volume_i = strtok (volume_i, ",");
volume[0] = atoi (volume_i);
- if (
100 < volume[0] < 0
) {
+ if (
(100 < volume[0])||(volume[0] < 0)
) {
free (volume_i);
request->errcode = MHD_HTTP_SERVICE_UNAVAILABLE;
return (jsonNewMessage (AFB_FAIL, "Volume must be between 0 and 100"));
free (volume_i);
request->errcode = MHD_HTTP_SERVICE_UNAVAILABLE;
return (jsonNewMessage (AFB_FAIL, "Volume must be between 0 and 100"));