[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: getprogname() for IBM z/OS
From: |
Pádraig Brady |
Subject: |
Re: getprogname() for IBM z/OS |
Date: |
Thu, 13 Oct 2016 09:50:37 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
On 13/10/16 02:43, Daniel Richard G. wrote:
> On Wed, 2016 Oct 12 11:04+0100, Pádraig Brady wrote:
>>
>> You only want to strdup once.
>> So you could use a static to track that as is done in the AIX case.
>
> Ah, I see, the program name never changes.
>
>> You can call free(NULL), so the last 3 ifs are redundant.
>
> Revised patch is tested and attached.
Pushed at:
http://git.svh.gnu.org/gitweb/?p=gnulib.git;a=commit;h=d75cbb3
thanks,
Pádraig