aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am2
-rw-r--r--src/bind-lex.l1
-rw-r--r--src/lookup.c2
3 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 0696c72..339b1be 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -28,7 +28,7 @@ gitid.h:
if test "$$url" = "git.gnu.org.ua/grecs.git"; then \
dirty=`git diff-index --name-only HEAD 2>/dev/null` || dirty=;\
test -n "$$dirty" && dirty="-dirty"; \
- ID=`git log -1 --pretty='%H-%ct-%ae'`$$dirty;\
+ ID=`git log -1 --pretty='format:%H-%ct-%ae'`$$dirty;\
echo "#define GRECS_GIT_ID \"$$ID\"" > gitid.tmp; \
cmp gitid.tmp gitid.h >/dev/null 2>&1 || mv gitid.tmp gitid.h; \
rm -f gitid.tmp; \
diff --git a/src/bind-lex.l b/src/bind-lex.l
index a5cf644..926785e 100644
--- a/src/bind-lex.l
+++ b/src/bind-lex.l
@@ -234,4 +234,5 @@ grecs_bind_close_sources()
while (!_pop_context())
;
grecs_list_free(input_stack);
+ input_stack = NULL;
}
diff --git a/src/lookup.c b/src/lookup.c
index a557845..e7f380e 100644
--- a/src/lookup.c
+++ b/src/lookup.c
@@ -255,7 +255,7 @@ split_cfg_path(const char *path, int *pargc, char ***pargv,
} else {
struct wordsplit ws;
- if (ispunct(path[0])) {
+ if (strchr("./:;,^~", path[0])) {
delim = static_delim;
delim[0] = path[0];
path++;

Return to:

Send suggestions and report system problems to the System administrator.