mirror of
https://github.com/tmate-io/tmate.git
synced 2025-01-12 00:48:53 +01:00
Close .tmux.conf... DOH.
This commit is contained in:
parent
907bec675a
commit
75012d59c2
5
cfg.c
5
cfg.c
@ -1,4 +1,4 @@
|
|||||||
/* $Id: cfg.c,v 1.14 2009-01-18 14:40:48 nicm Exp $ */
|
/* $Id: cfg.c,v 1.15 2009-03-31 22:23:43 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -107,10 +107,13 @@ load_cfg(const char *path, char **cause)
|
|||||||
}
|
}
|
||||||
if (line != NULL)
|
if (line != NULL)
|
||||||
xfree(line);
|
xfree(line);
|
||||||
|
fclose(f);
|
||||||
|
|
||||||
return (0);
|
return (0);
|
||||||
|
|
||||||
error:
|
error:
|
||||||
|
fclose(f);
|
||||||
|
|
||||||
xasprintf(&ptr, "%s: %s at line %u", path, *cause, n);
|
xasprintf(&ptr, "%s: %s at line %u", path, *cause, n);
|
||||||
xfree(*cause);
|
xfree(*cause);
|
||||||
*cause = ptr;
|
*cause = ptr;
|
||||||
|
Loading…
Reference in New Issue
Block a user