summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Python/macguesstabsize.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Mac/Python/macguesstabsize.c b/Mac/Python/macguesstabsize.c
index 43af884..64a6ad7 100644
--- a/Mac/Python/macguesstabsize.c
+++ b/Mac/Python/macguesstabsize.c
@@ -45,6 +45,9 @@ guesstabsize(path)
int refnum;
Handle h;
int tabsize = 0;
+
+ /* Very simple case: stdin (pathname empty) */
+ if ( path[0] == '\0' || strcmp(path, "<stdin>") == 0 ) return 0;
s[0] = strlen(path);
memcpy(s+1, path, s[0]);
refnum = OpenResFile(s);