svn commit: r261994 - stable/10/games/fortune/fortune

Marcel Moolenaar marcel at FreeBSD.org
Sun Feb 16 20:02:30 UTC 2014


Author: marcel
Date: Sun Feb 16 20:02:29 2014
New Revision: 261994
URL: http://svnweb.freebsd.org/changeset/base/261994

Log:
  MFC r259056:
  Fix r203922 for "fortune -o".

Modified:
  stable/10/games/fortune/fortune/fortune.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/games/fortune/fortune/fortune.c
==============================================================================
--- stable/10/games/fortune/fortune/fortune.c	Sun Feb 16 19:46:20 2014	(r261993)
+++ stable/10/games/fortune/fortune/fortune.c	Sun Feb 16 20:02:29 2014	(r261994)
@@ -486,7 +486,7 @@ add_file(int percent, const char *file, 
 		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));


More information about the svn-src-stable-10 mailing list