Re: [PATCH] Cygwin: path_conv::eq_worker: add NULL pointer checks

2020-11-16 Thread Ken Brown via Cygwin-patches
On 11/16/2020 7:08 AM, Corinna Vinschen wrote: On Nov 14 09:16, Ken Brown via Cygwin-patches wrote: Don't call cstrdup on NULL pointers. --- winsup/cygwin/path.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/winsup/cygwin/path.h b/winsup/cygwin/path.h index b94f13d

Re: [PATCH] Cygwin: path_conv::eq_worker: add NULL pointer checks

2020-11-16 Thread Corinna Vinschen
On Nov 14 09:16, Ken Brown via Cygwin-patches wrote: > Don't call cstrdup on NULL pointers. > --- > winsup/cygwin/path.h | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/winsup/cygwin/path.h b/winsup/cygwin/path.h > index b94f13df8..0b3e72fc1 100644 > --- a/winsup/cy

[PATCH] Cygwin: path_conv::eq_worker: add NULL pointer checks

2020-11-14 Thread Ken Brown via Cygwin-patches
Don't call cstrdup on NULL pointers. --- winsup/cygwin/path.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/winsup/cygwin/path.h b/winsup/cygwin/path.h index b94f13df8..0b3e72fc1 100644 --- a/winsup/cygwin/path.h +++ b/winsup/cygwin/path.h @@ -320,9 +320,11 @@ class pat