fix bad memory reference
This commit is contained in:
parent
dfb81fc217
commit
704989bf70
2
C/save.c
2
C/save.c
@ -1437,6 +1437,8 @@ OpenRestore(char *inpf, char *YapLibDir, CELL *Astate, CELL *ATrail, CELL *AStac
|
|||||||
CACHE_REGS
|
CACHE_REGS
|
||||||
int mode = FAIL_RESTORE;
|
int mode = FAIL_RESTORE;
|
||||||
char save_buffer[YAP_FILENAME_MAX+1];
|
char save_buffer[YAP_FILENAME_MAX+1];
|
||||||
|
|
||||||
|
save_buffer[0] = '\0';
|
||||||
// LOCAL_ErrorMessage = NULL;
|
// LOCAL_ErrorMessage = NULL;
|
||||||
if (inpf == NULL) {
|
if (inpf == NULL) {
|
||||||
#if _MSC_VER || defined(__MINGW32__)
|
#if _MSC_VER || defined(__MINGW32__)
|
||||||
|
Reference in New Issue
Block a user