Thread (13 messages) flat view 13 messages, 4 authors, 2016-06-15

Re: Porting git to HP NonStop

From: Brandon Casey <hidden>
Date: 2016-06-15 22:54:33

Possibly related (same subject, not in this thread)

On Wed, Aug 22, 2012 at 10:00 AM, Brandon Casey [off-list ref] wrote:
Also, we have xstrndup.  So I think the body of your function can become
something like:

   if (len && dir[len-1] == '/')
       dir = tmp_dir = xstrndup(dir, len-1);

   retval = mkdir(dir, mode);
   free(tmp_dir);
Actually, xmemdupz could be used in place of xstrndup since we've
already called strlen.

-Brandon
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help