---
files.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/files.c b/files.c
index 89a11d4..3319eef 100644
--- a/files.c
+++ b/files.c
@@ -363,13 +363,13 @@ char * generate_pathname(void)
case 0 ... 90:
/* 90% chance of returning an unmangled filename */
if ((rand() % 100) > 10)
- return get_filename();
+ return pathname;
case 91 ... 99:
/* Create a bogus filename. */
newpath = malloc(page_size); // FIXME: We leak this.
if (newpath == NULL)
- return get_filename(); // give up.
+ return pathname; // give up.
generate_random_page(newpath);
--
1.8.1.4
--
To unsubscribe from this list: send the line "unsubscribe trinity" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html