aboutsummaryrefslogtreecommitdiff
path: root/multihome.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2020-08-31 23:43:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2020-08-31 23:43:52 -0400
commit2ecbf55184bf47dfc91ece9ff369789fbf62aa91 (patch)
treee50b05774060dbace383b4b116331ba17ac4cfe2 /multihome.c
parentb0aa87dbd70870785ef3343be962e0febf881f50 (diff)
downloadmultihome-2ecbf55184bf47dfc91ece9ff369789fbf62aa91.tar.gz
Fix NULL hostname
Diffstat (limited to 'multihome.c')
-rw-r--r--multihome.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/multihome.c b/multihome.c
index 0006bd1..e93a9fb 100644
--- a/multihome.c
+++ b/multihome.c
@@ -552,8 +552,8 @@ int main(int argc, char *argv[]) {
nodename = strchr(host_info.nodename, '.');
if (nodename != NULL) {
*nodename = '\0';
- nodename = nodename_orig;
}
+ nodename = nodename_orig;
// Determine the user's home directory
char *path_old;