From 2d37fa907be992751df08314066b17e5dc8dc82c Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Wed, 7 Apr 1999 19:38:02 +0000 Subject: [PATCH] (ka_dump): remove unused variables git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5872 ec53bebd-3082-4978-b11e-865c3cabbd6b --- kdc/hprop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kdc/hprop.c b/kdc/hprop.c index 5df2ea79f..847350981 100644 --- a/kdc/hprop.c +++ b/kdc/hprop.c @@ -332,9 +332,9 @@ static int ka_dump(struct prop_data *pd, const char *file, const char *cell) { struct ka_header header; - krb5_error_code ret; int i; int fd = open(file, O_RDONLY); + if(fd < 0) krb5_err(pd->context, 1, errno, "open(%s)", file); read_block(pd->context, fd, 0, &header, sizeof(header));