From 9180c81bd7f4f3dd2fb9f2835894d8c0e9488dbd Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Tue, 4 Nov 2008 20:50:38 +1100 Subject: [PATCH] Always set 'homehost' if not specified. The default for 'homehost' is now '' rather than unspecified. --- mdadm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mdadm.c b/mdadm.c index b2ec6f90..f830a8dd 100644 --- a/mdadm.c +++ b/mdadm.c @@ -997,7 +997,7 @@ int main(int argc, char *argv[]) if (homehost == NULL) homehost = conf_get_homehost(); - if (homehost && strcmp(homehost, "")==0) { + if (homehost == NULL || strcmp(homehost, "")==0) { if (gethostname(sys_hostname, sizeof(sys_hostname)) == 0) { sys_hostname[sizeof(sys_hostname)-1] = 0; homehost = sys_hostname; -- 2.47.3