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

From: Markus Teich <markus.teich_AT_stusta.mhn.de>
Date: Wed, 18 Dec 2013 17:09:34 +0100

Ivan Vershinin wrote:
> + user = getenv("USER");
> + if(!user)

Heyho,

I do not know how you guys think about this, but I would do that in one line:

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

--Markus
Received on Wed Dec 18 2013 - 17:09:34 CET

This archive was generated by hypermail 2.3.0 : Wed Dec 18 2013 - 17:12:06 CET