Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Feb 2014 20:02:30 +0000 (UTC)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r261994 - stable/10/games/fortune/fortune
Message-ID:  <201402162002.s1GK2Uum017790@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402162002.s1GK2Uum017790>