X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=plugins%2Faudio%2Faudio-api.c;h=9c9da2514960cdf13ff55ef2fc5009229c6fcb02;hb=c2560bd51498fb38e645b60ae638e2e888c74b65;hp=637f9d036789f45709a4f054c15710561082074e;hpb=fcfb3c0951b6e2e06e7bf282e867576d8abb00c4;p=src%2Fapp-framework-binder.git diff --git a/plugins/audio/audio-api.c b/plugins/audio/audio-api.c index 637f9d03..9c9da251 100644 --- 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); - 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"));