[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: don't dereference NULL
From: |
Bruno Haible |
Subject: |
Re: don't dereference NULL |
Date: |
Thu, 18 Oct 2007 00:27:36 +0200 |
User-agent: |
KMail/1.5.4 |
Hi Jim,
> diff --git a/m4/locale-fr.m4 b/m4/locale-fr.m4
> ...
> +#ifdef __CYGWIN__
> ...
> + if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
>
> That will segfault (dereference NULL) when getenv returns NULL.
> Surely that was unintentional...
It was intentional. getenv cannot return NULL here. I now added a comment
about it.
Bruno