]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - client_common.c
Merge topic branch t/sf_float into pu
[paraslash.git] / client_common.c
index df44488d8ca62768eb476694176b642bf45e710a..cbd78bbbd6319653ef4950fe8d391922ee3aff59 100644 (file)
@@ -592,11 +592,7 @@ int client_parse_config(int argc, char *argv[], struct client_task **ct_ptr,
                kf = make_message("%s/key.%s", confdir, user);
                if (stat(kf, &statbuf) != 0) { /* assume file does not exist */
                        const char *home = getenv("HOME");
-                       if (!home || !*home) {
-                               ret = -ERRNO_TO_PARA_ERROR(EINVAL);
-                               errctx = make_message("HOME unset or empty");
-                               goto out;
-                       }
+                       assert(home); /* get_confdir() above succeeded */
                        free(kf);
                        kf = make_message("%s/.ssh/id_rsa", home);
                }