aboutsummaryrefslogtreecommitdiffstats
path: root/calmwm.c
diff options
context:
space:
mode:
authorokan2017-12-22 21:21:44 +0000
committerokan2017-12-22 21:21:44 +0000
commit456e85bd7fa9cca94b23f98acd6f612cc15ee5e0 (patch)
tree7afc953095ff27cc0904bfb36d5e4ac2487abeaf /calmwm.c
parent8ce5d4396dec452d2c0af1eefc88ebcc47f47832 (diff)
downloadcwm-456e85bd7fa9cca94b23f98acd6f612cc15ee5e0.tar.gz
Fix a few comments and while here, wrap some long lines.
Diffstat (limited to 'calmwm.c')
-rw-r--r--calmwm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/calmwm.c b/calmwm.c
index c22f0fa..7dbbd5b 100644
--- a/calmwm.c
+++ b/calmwm.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: calmwm.c,v 1.100 2017/12/07 15:47:14 okan Exp $
+ * $OpenBSD: calmwm.c,v 1.101 2017/12/22 21:21:44 okan Exp $
*/
#include <sys/types.h>
@@ -81,7 +81,8 @@ main(int argc, char **argv)
if (signal(SIGCHLD, sighdlr) == SIG_ERR)
err(1, "signal");
- if ((Conf.homedir = getenv("HOME")) == NULL || Conf.homedir[0] == '\0') {
+ Conf.homedir = getenv("HOME");
+ if ((Conf.homedir == NULL) || (Conf.homedir[0] == '\0')) {
pw = getpwuid(getuid());
if (pw != NULL && pw->pw_dir != NULL && *pw->pw_dir != '\0')
Conf.homedir = pw->pw_dir;