Re: [HACKERS] new patch

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Massimo Dal Zotto <dz(at)cs(dot)unitn(dot)it>
Cc: hackers(at)postgreSQL(dot)org (PostgreSQL Hackers), maillist(at)candle(dot)pha(dot)pa(dot)us (Bruce Momjian)
Subject: Re: [HACKERS] new patch
Date: 1999-06-13 20:26:42
Message-ID: 524.929305602@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Massimo Dal Zotto <dz(at)cs(dot)unitn(dot)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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Henry B. Hotz 1999-06-14 00:39:23 Re: [HACKERS] Re: [PORTS] Patch for m68k architecture
Previous Message Tom Lane 1999-06-13 20:09:42 Re: [HACKERS] COPY bug?