> On Fri, Jan 9, 2015 at 9:23 PM, Tatsuo Ishii <is...@postgresql.org> wrote: >> This is because gen_db_file_maps() allocates memory even if n_maps == 0. > Purely cosmetic: the initialization n_maps = 0 before the call of > gen_db_file_maps is unnecessary ;)
Of course. n_maps is written by calling gen_db_file_maps() anyway. I was talking about the case after calling gen_db_file_maps(). Best regards, -- Tatsuo Ishii SRA OSS, Inc. Japan English: http://www.sraoss.co.jp/index_en.php Japanese:http://www.sraoss.co.jp -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers