summaryrefslogtreecommitdiffstats
path: root/vtysh/vtysh_user.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2019-02-25 20:49:00 +0100
committerQuentin Young <qlyoung@cumulusnetworks.com>2019-02-26 00:00:46 +0100
commit831600c3d073dff1c6c0a4de84ef476f97b0332d (patch)
tree575da3c80730e3cd57b51efdac687bc70005d4b0 /vtysh/vtysh_user.c
parent*: do not check XMALLOC / XCALLOC for null ret (diff)
downloadfrr-831600c3d073dff1c6c0a4de84ef476f97b0332d.tar.xz
frr-831600c3d073dff1c6c0a4de84ef476f97b0332d.zip
*: compare pointer types to NULL, not 0
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'vtysh/vtysh_user.c')
-rw-r--r--vtysh/vtysh_user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vtysh/vtysh_user.c b/vtysh/vtysh_user.c
index dcf8ca047..aaf70ab08 100644
--- a/vtysh/vtysh_user.c
+++ b/vtysh/vtysh_user.c
@@ -204,7 +204,7 @@ char *vtysh_get_home(void)
struct passwd *passwd;
char *homedir;
- if ((homedir = getenv("HOME")) != 0)
+ if ((homedir = getenv("HOME")) != NULL)
return homedir;
/* Fallback if HOME is undefined */