postgresql/src/bin/initdb
Stephen Frost b1aebbb6a8 Various Coverity-spotted fixes
A number of issues were identified by the Coverity scanner and are
addressed in this patch.  None of these appear to be security issues
and many are mostly cosmetic changes.

Short comments for each of the changes follows.

Correct the semi-colon placement in be-secure.c regarding SSL retries.
Remove a useless comparison-to-NULL in proc.c (value is dereferenced
  prior to this check and therefore can't be NULL).
Add checking of chmod() return values to initdb.
Fix a couple minor memory leaks in initdb.
Fix memory leak in pg_ctl- involves free'ing the config file contents.
Use an int to capture fgetc() return instead of an enum in pg_dump.
Fix minor memory leaks in pg_dump.
  (note minor change to convertOperatorReference()'s API)
Check fclose()/remove() return codes in psql.
Check fstat(), find_my_exec() return codes in psql.
Various ECPG memory leak fixes.
Check find_my_exec() return in ECPG.
Explicitly ignore pqFlush return in libpq error-path.
Change PQfnumber() to avoid doing an strdup() when no changes required.
Remove a few useless check-against-NULL's (value deref'd beforehand).
Check rmtree(), malloc() results in pg_regress.
Also check get_alternative_expectfile() return in pg_regress.
2014-03-01 22:14:14 -05:00
..
po Translation updates 2013-12-02 00:17:07 -05:00
.gitignore Move pqsignal() to libpgport. 2013-03-17 12:06:42 -04:00
findtimezone.c Prevent potential overruns of fixed-size buffers. 2014-02-17 11:20:21 -05:00
initdb.c Various Coverity-spotted fixes 2014-03-01 22:14:14 -05:00
Makefile Update copyright for 2014 2014-01-07 16:05:30 -05:00
nls.mk Move rmtree() from libpgport to libpgcommon 2013-10-19 10:20:51 -04:00