second argument of check_version() can take NULL

There is a code path starting at restore.c line 830.

    (void) validate(nhfp, (char *) 0, FALSE);
This commit is contained in:
SHIRAKATA Kentaro
2025-01-12 18:26:01 +09:00
parent e08a9671dc
commit 36443c965b

View File

@@ -3476,7 +3476,7 @@ extern int doextversion(void);
extern boolean comp_times(long);
#endif
extern boolean check_version(struct version_info *, const char *, boolean,
unsigned long) NONNULLARG12;
unsigned long) NONNULLARG1;
extern boolean uptodate(NHFILE *, const char *, unsigned long) NONNULLARG1;
extern void store_formatindicator(NHFILE *) NONNULLARG1;
extern void store_version(NHFILE *) NONNULLARG1;