Skip to content

Commit 6423664

Browse files
committed
fixed several -Wzero-as-null-pointer-constant warnings from gcc-15
1 parent 39c5d36 commit 6423664

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/SDL_native_midi_common.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ static MIDIEvent *MIDItoStream(MIDIFile *mididata)
234234
}
235235

236236
// Make sure the list is properly terminated
237-
currentEvent->next = 0;
237+
currentEvent->next = NULL;
238238

239239
currentEvent = head->next;
240240
SDL_free(track);
@@ -396,4 +396,3 @@ NativeMidi_Song *NativeMidi_LoadSong(const char *path)
396396
SDL_IOStream *io = SDL_IOFromFile(path, "rb");
397397
return io ? NativeMidi_LoadSong_IO(io, true) : NULL;
398398
}
399-

0 commit comments

Comments
 (0)