From 23f6dbc8a6b0ccc241f4e0b2a2285b49aee3eb30 Mon Sep 17 00:00:00 2001 From: sjplimp Date: Thu, 12 Jul 2007 13:07:06 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@746 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/read_restart.cpp | 2 +- src/write_restart.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/read_restart.cpp b/src/read_restart.cpp index 2182f96937..2dd02ed0b3 100644 --- a/src/read_restart.cpp +++ b/src/read_restart.cpp @@ -89,7 +89,7 @@ void ReadRestart::command(int narg, char **arg) if (screen) fprintf(screen,"Reading restart file ...\n"); char *hfile; if (multiproc) { - char *hfile = new char[strlen(file) + 16]; + hfile = new char[strlen(file) + 16]; char *ptr = strchr(file,'%'); *ptr = '\0'; sprintf(hfile,"%s%s%s",file,"base",ptr+1); diff --git a/src/write_restart.cpp b/src/write_restart.cpp index 05fa1ac7ef..d6566457be 100644 --- a/src/write_restart.cpp +++ b/src/write_restart.cpp @@ -131,7 +131,7 @@ void WriteRestart::write(char *file) if (me == 0) { char *hfile; if (multiproc) { - char *hfile = new char[strlen(file) + 16]; + hfile = new char[strlen(file) + 16]; char *ptr = strchr(file,'%'); *ptr = '\0'; sprintf(hfile,"%s%s%s",file,"base",ptr+1);