diff options
author | Robin Gareus <robin@gareus.org> | 2018-01-26 13:56:19 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-01-26 18:07:23 +0100 |
commit | 48c1a2428414761d5f461d8fa2cbbc7b1143deca (patch) | |
tree | 44a86512102f01c73a4b427297f63b8cbf07ac23 /libs/evoral | |
parent | 76b7345ab6f3ccaf9e916c6f5d30358b44ff67ea (diff) |
Fix some clang warnings (argument with 'nonnull' attribute passed null)
Diffstat (limited to 'libs/evoral')
-rw-r--r-- | libs/evoral/src/SMF.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/evoral/src/SMF.cpp b/libs/evoral/src/SMF.cpp index b5d34aa538..60d69c8a4d 100644 --- a/libs/evoral/src/SMF.cpp +++ b/libs/evoral/src/SMF.cpp @@ -326,6 +326,7 @@ SMF::read_event(uint32_t* delta_t, uint32_t* size, uint8_t** buf, event_id_t* no if (*size < (unsigned)event_size) { *buf = (uint8_t*)realloc(*buf, event_size); } + assert (*buf); memcpy(*buf, event->midi_buffer, size_t(event_size)); *size = event_size; if (((*buf)[0] & 0xF0) == 0x90 && (*buf)[2] == 0) { |