Skip to content

Commit 3071e49

Browse files
committed
fixed several -Wzero-as-null-pointer-constant warnings from gcc-15
1 parent 4182794 commit 3071e49

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/timidity/options.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/* When a patch file can't be opened, one of these extensions is
1313
appended to the filename and the open is tried again.
1414
*/
15-
#define PATCH_EXT_LIST { ".pat", 0 }
15+
#define PATCH_EXT_LIST { ".pat", NULL }
1616

1717
/* Acoustic Grand Piano seems to be the usual default instrument. */
1818
#define DEFAULT_PROGRAM 0

src/timidity/timidity.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ static int read_config_file(const char *name, int rcf_count)
9696
/* Originally the TiMidity++ extensions were prefixed like this */
9797
if (SDL_strcmp(w[0], "#extension") == 0)
9898
{
99-
w[0]=SDL_strtok_r(0, " \t\240", &endp);
99+
w[0]=SDL_strtok_r(NULL, " \t\240", &endp);
100100
if (!w[0]) continue;
101101
}
102102

0 commit comments

Comments
 (0)