summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--clients/zshutdown_notify/zshutdown_notify.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/clients/zshutdown_notify/zshutdown_notify.c b/clients/zshutdown_notify/zshutdown_notify.c
index 8895b25..8c98d55 100644
--- a/clients/zshutdown_notify/zshutdown_notify.c
+++ b/clients/zshutdown_notify/zshutdown_notify.c
@@ -67,11 +67,6 @@ main(argc,argv)
msg[1] = message;
msg[2] = warning;
- if ((retval = ZInitialize()) != ZERR_NONE) {
- com_err(argv[0], retval, "while initializing");
- exit(1);
- }
-
if (gethostname(hostname, MAXHOSTNAMELEN) < 0) {
com_err(argv[0], errno, "while finding hostname");
exit(1);
@@ -105,6 +100,11 @@ main(argc,argv)
}
#endif
+ if ((retval = ZInitialize()) != ZERR_NONE) {
+ com_err(argv[0], retval, "while initializing");
+ exit(1);
+ }
+
ptr = message;
for (;;) {