diff options
author | marcel <marcel@FreeBSD.org> | 2014-02-16 20:02:29 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2014-02-16 20:02:29 +0000 |
commit | ad410a47a2e8731bbc7320e0f4fc3bf4095f788f (patch) | |
tree | a9595f5521b03ca3d5c8784b3f19a033c66d7afb /games | |
parent | 035a99067304e7c2ddce71a40b251d094ff6c06c (diff) | |
download | FreeBSD-src-ad410a47a2e8731bbc7320e0f4fc3bf4095f788f.zip FreeBSD-src-ad410a47a2e8731bbc7320e0f4fc3bf4095f788f.tar.gz |
MFC r259056:
Fix r203922 for "fortune -o".
Diffstat (limited to 'games')
-rw-r--r-- | games/fortune/fortune/fortune.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/games/fortune/fortune/fortune.c b/games/fortune/fortune/fortune.c index d5ce1b9..4b2ffa7 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)); |