aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2013-12-07 01:35:18 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2013-12-07 01:35:18 +0000
commit3a3dd1fd20089d6da1e02ee877468ed22810b89b (patch)
tree59273df37462868d939efaf2c1f69152fbd40df9 /games
parentd4ae33f0721c1b170fe37d97e395228ffcfb3f80 (diff)
Notes
Diffstat (limited to 'games')
-rw-r--r--games/fortune/fortune/fortune.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/games/fortune/fortune/fortune.c b/games/fortune/fortune/fortune.c
index d5ce1b9c80e4..4b2ffa750bc6 100644
--- a/games/fortune/fortune/fortune.c
+++ b/games/fortune/fortune/fortune.c
@@ -486,7 +486,7 @@ add_file(int percent, const char *file, const char *dir, FILEDESC **head,
if (Offend) {
if (was_malloc)
free(tpath);
- path = offensive;
+ path = tpath = offensive;
offensive = NULL;
was_malloc = TRUE;
DPRINTF(1, (stderr, "\ttrying \"%s\"\n", path));
@@ -508,7 +508,7 @@ over:
if (All_forts && offensive != NULL) {
if (was_malloc)
free(tpath);
- path = offensive;
+ path = tpath = offensive;
offensive = NULL;
was_malloc = TRUE;
DPRINTF(1, (stderr, "\ttrying \"%s\"\n", path));