aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2020-12-30 12:42:48 +0000
committerStefan Eßer <se@FreeBSD.org>2020-12-30 12:44:33 +0000
commite163cae76ec73bb5e20185c066518ec646d0f34f (patch)
tree32d2f3dcd773190f7b7896e282700ef79f2ce30a
parent59f46e34cf640a057e7445960a807004ce4de9ff (diff)
downloadsrc-e163cae76ec73bb5e20185c066518ec646d0f34f.tar.gz
src-e163cae76ec73bb5e20185c066518ec646d0f34f.zip
Make calendarhome buffer static
the value may be used in error messages after leaving this function.
-rw-r--r--usr.bin/calendar/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/calendar/io.c b/usr.bin/calendar/io.c
index adea085cf3da..24966399c179 100644
--- a/usr.bin/calendar/io.c
+++ b/usr.bin/calendar/io.c
@@ -122,7 +122,7 @@ cal_fopen(const char *file)
unsigned int i;
struct stat sb;
static bool warned = false;
- char calendarhome[MAXPATHLEN];
+ static char calendarhome[MAXPATHLEN];
if (home == NULL || *home == '\0') {
warnx("Cannot get home directory");