chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DisOrder 5.1.1
[disorder]
/
lib
/
configuration.c
diff --git
a/lib/configuration.c
b/lib/configuration.c
index 4f21d25bc2e1a11c1a93044ac357c3ad73dca4e0..351b15115f15ea2cf38a4429a2de3ce48c8866ba 100644
(file)
--- a/
lib/configuration.c
+++ b/
lib/configuration.c
@@
-697,7
+697,7
@@
static int validate_isreg(const struct config_state *cs,
static int validate_player(const struct config_state *cs,
int nvec,
char attribute((unused)) **vec) {
static int validate_player(const struct config_state *cs,
int nvec,
char attribute((unused)) **vec) {
- if(nvec < 2) {
+ if(nvec
&& nvec
< 2) {
disorder_error(0, "%s:%d: should be at least 'player PATTERN MODULE'",
cs->path, cs->line);
return -1;
disorder_error(0, "%s:%d: should be at least 'player PATTERN MODULE'",
cs->path, cs->line);
return -1;
@@
-714,7
+714,7
@@
static int validate_player(const struct config_state *cs,
static int validate_tracklength(const struct config_state *cs,
int nvec,
char attribute((unused)) **vec) {
static int validate_tracklength(const struct config_state *cs,
int nvec,
char attribute((unused)) **vec) {
- if(nvec < 2) {
+ if(nvec
&& nvec
< 2) {
disorder_error(0, "%s:%d: should be at least 'tracklength PATTERN MODULE'",
cs->path, cs->line);
return -1;
disorder_error(0, "%s:%d: should be at least 'tracklength PATTERN MODULE'",
cs->path, cs->line);
return -1;