Re: [dev] Slock segfaults if USER variable is empty

From: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
Date: Wed, 18 Dec 2013 19:21:25 +0100

> I do not know how you guys think about this, but I would do that in one line:
>
> if(!(user = getenv("USER")))

I agree with you, although can be a discussion point if it is better or not
something like:

 if ((user = getenv("USER)) != NULL)


-- 
Roberto E. Vargas Caballero
Received on Wed Dec 18 2013 - 19:21:25 CET

This archive was generated by hypermail 2.3.0 : Wed Dec 18 2013 - 19:24:16 CET