On Tue, Feb 5, 2013 at 12:18 AM, Phil Sorber p...@omniti.com wrote:
On Mon, Feb 4, 2013 at 10:52 PM, Tom Lane t...@sss.pgh.pa.us wrote:
Phil Sorber p...@omniti.com writes:
get_progname() returns a strdup()'d value. Shouldn't it then be simply
char * and not const char *? Otherwise free()
Robert Haas robertmh...@gmail.com writes:
On Tue, Feb 5, 2013 at 12:18 AM, Phil Sorber p...@omniti.com wrote:
On Mon, Feb 4, 2013 at 10:52 PM, Tom Lane t...@sss.pgh.pa.us wrote:
I don't believe that callers should be trying to free() the result.
Whether it's been strdup'd or not is not any of
On Wed, Feb 6, 2013 at 11:22 AM, Tom Lane t...@sss.pgh.pa.us wrote:
Robert Haas robertmh...@gmail.com writes:
On Tue, Feb 5, 2013 at 12:18 AM, Phil Sorber p...@omniti.com wrote:
On Mon, Feb 4, 2013 at 10:52 PM, Tom Lane t...@sss.pgh.pa.us wrote:
I don't believe that callers should be trying to
get_progname() returns a strdup()'d value. Shouldn't it then be simply
char * and not const char *? Otherwise free() complains loudly without
a cast.
diff --git a/src/include/port.h b/src/include/port.h
new file mode 100644
index 99d3a9b..2d6a435
*** a/src/include/port.h
--- b/src/include/port.h
Phil Sorber p...@omniti.com writes:
get_progname() returns a strdup()'d value. Shouldn't it then be simply
char * and not const char *? Otherwise free() complains loudly without
a cast.
I don't believe that callers should be trying to free() the result.
Whether it's been strdup'd or not is not
On Mon, Feb 4, 2013 at 10:52 PM, Tom Lane t...@sss.pgh.pa.us wrote:
Phil Sorber p...@omniti.com writes:
get_progname() returns a strdup()'d value. Shouldn't it then be simply
char * and not const char *? Otherwise free() complains loudly without
a cast.
I don't believe that callers should be