projects
/
henge
/
apc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixes
[henge/apc.git]
/
src
/
scanner.c
diff --git
a/src/scanner.c
b/src/scanner.c
index
6dcbc9d
..
686e1fe
100644
(file)
--- a/
src/scanner.c
+++ b/
src/scanner.c
@@
-45,7
+45,7
@@
int scanner_init
scanner_quit();
apc_pstate = yypstate_new();
apc_cstate = yycstate_new();
scanner_quit();
apc_pstate = yypstate_new();
apc_cstate = yycstate_new();
- return (apc_pstate
!= NULL && apc_cstate !
= NULL);
+ return (apc_pstate
== NULL || apc_cstate =
= NULL);
}
/* Quit
}
/* Quit
@@
-68,7
+68,9
@@
int scanner_scanpath
{ DIR* dirp;
errno = 0;
if ((dirp = opendir(pathname)) == NULL || errno)
{ DIR* dirp;
errno = 0;
if ((dirp = opendir(pathname)) == NULL || errno)
- return -1;
+ { fprintf(stderr, "Path %s could not be accessed\n", pathname);
+ return -1;
+ }
if (chdir(pathname))
return -1;
return scanner_scandir(dirp);
if (chdir(pathname))
return -1;
return scanner_scandir(dirp);