Re: [HACKERS] new patch - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] new patch
Date
Msg-id 524.929305602@sss.pgh.pa.us
Whole thread Raw
In response to new patch  (Massimo Dal Zotto <dz@cs.unitn.it>)
Responses Re: [HACKERS] new patch  (Massimo Dal Zotto <dz@cs.unitn.it>)
List pgsql-hackers
Massimo Dal Zotto <dz@cs.unitn.it> writes:
> +             char *progname = rindex(argv[0], SEP_CHAR);
> +             rl_readline_name = (progname ? progname : argv[0]);

1. rindex => strrchr, please.

2. Shouldn't that be (progname ? progname+1 : argv[0]) ?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] COPY bug?
Next
From: "Henry B. Hotz"
Date:
Subject: Re: [HACKERS] Re: [PORTS] Patch for m68k architecture