diff --git a/src/psl.c b/src/psl.c index 4eea3bc..2875c35 100644 --- a/src/psl.c +++ b/src/psl.c @@ -110,8 +110,8 @@ struct _psl_ctx_st { # include "suffixes.c" #else /* if this source file is included by psl2c.c, provide empty builtin data */ - static _psl_entry_t suffixes[0]; - static _psl_entry_t suffix_exceptions[0]; + static _psl_entry_t suffixes[1]; + static _psl_entry_t suffix_exceptions[1]; static time_t _psl_file_time; static time_t _psl_compile_time; static const char _psl_sha1_checksum[] = ""; diff --git a/src/psl2c.c b/src/psl2c.c index 8ec4a3c..daeec83 100644 --- a/src/psl2c.c +++ b/src/psl2c.c @@ -28,8 +28,6 @@ * */ - - #if HAVE_CONFIG_H # include #endif @@ -182,8 +180,8 @@ int main(int argc, const char **argv) psl_free(psl); #else if ((fpout = fopen(argv[2], "w"))) { - fprintf(fpout, "static _psl_entry_t suffixes[0];\n"); - fprintf(fpout, "static _psl_entry_t suffix_exceptions[0];\n"); + fprintf(fpout, "static _psl_entry_t suffixes[1];\n"); + fprintf(fpout, "static _psl_entry_t suffix_exceptions[1];\n"); fprintf(fpout, "static time_t _psl_file_time;\n"); fprintf(fpout, "static time_t _psl_compile_time;\n"); fprintf(fpout, "static const char _psl_sha1_checksum[] = \"\";\n");