bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getprogname() for IBM z/OS


From: Daniel Richard G.
Subject: Re: getprogname() for IBM z/OS
Date: Wed, 12 Oct 2016 21:43:19 -0400

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.


--Daniel


-- 
Daniel Richard G. || address@hidden
My ASCII-art .sig got a bad case of Times New Roman.

Attachment: gnulib-getprogname-zos-2.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]