summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/responder/ssh/sshsrv_cmd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/responder/ssh/sshsrv_cmd.c b/src/responder/ssh/sshsrv_cmd.c
index ec988f09..7de523fa 100644
--- a/src/responder/ssh/sshsrv_cmd.c
+++ b/src/responder/ssh/sshsrv_cmd.c
@@ -559,7 +559,8 @@ ssh_host_pubkeys_update_known_hosts(struct ssh_cmd_ctx *cmd_ctx)
size_t num_hosts, i;
struct sss_ssh_ent *ent;
int fd = -1;
- char *filename, *entstr;
+ char *filename = NULL;
+ char *entstr;
ssize_t wret;
mode_t old_mask;