summaryrefslogtreecommitdiff
path: root/byterun/macintosh.c
diff options
context:
space:
mode:
Diffstat (limited to 'byterun/macintosh.c')
-rw-r--r--byterun/macintosh.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/byterun/macintosh.c b/byterun/macintosh.c
index 61660b1a16..a1c08cbc78 100644
--- a/byterun/macintosh.c
+++ b/byterun/macintosh.c
@@ -70,8 +70,8 @@ int chdir (char *dir)
if (result != noErr) return -1;
if (prevdir != 0){
prevdir = 0;
- pb.ioVRefNum = prevdir;
- PBCloseWDSync (&pb);
+ pb.ioVRefNum = prevdir;
+ PBCloseWDSync (&pb);
}
return 0;
}
@@ -97,12 +97,12 @@ static char *getfullpathpb (CInfoPBPtr pb)
char *result;
if (pb->hFileInfo.ioFlParID == fsRtParID){
- result = malloc (1);
- if (result == NULL) return NULL;
- result [0] = '\0';
+ result = malloc (1);
+ if (result == NULL) return NULL;
+ result [0] = '\0';
}else{
result = getfullpathid (pb->hFileInfo.ioVRefNum, pb->hFileInfo.ioFlParID);
- if (result == NULL) return NULL;
+ if (result == NULL) return NULL;
}
cat_cp_str (&result, pb->hFileInfo.ioNamePtr);
if (pb->hFileInfo.ioFlAttrib & (1<<4)) cat_cp_str (&result, "\p:");