summaryrefslogtreecommitdiff
path: root/apps/plugins/midi/midifile.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/midi/midifile.c')
-rw-r--r--apps/plugins/midi/midifile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/midi/midifile.c b/apps/plugins/midi/midifile.c
index 84e8b567bc..b5d9c5b6d1 100644
--- a/apps/plugins/midi/midifile.c
+++ b/apps/plugins/midi/midifile.c
@@ -31,7 +31,7 @@ struct MIDIfile * loadFile(const char * filename)
struct MIDIfile * mfload;
int file = rb->open (filename, O_RDONLY);
- if(file==-1)
+ if(file < 0)
{
printf("Could not open file");
return NULL;