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

Re: webkit-1.8.0-2: Patches for review



Svante Signell, le Mon 16 Apr 2012 19:36:29 +0200, a écrit :
> char *readLinkBuffer; -> static char *readLinkBuffer;
> similar to static char readLinkBuffer[PATH_MAX]; before?

Yes.

> So static works even if the memory allocated for the buffer is
> malloced?? Of course the pointer remains the same, right??

Yes.

> What about if the result is a null pointer??

The result of malloc? Then return CString();, as already being done on
error.

Samuel


Reply to: