[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: htags segmentation fault
From: |
Hideki IWAMOTO |
Subject: |
Re: htags segmentation fault |
Date: |
Tue, 07 Sep 2004 17:30:52 +0900 |
On Sun, 05 Sep 2004 17:08:00 +0900, Hideki IWAMOTO wrote...
> If htags is run in empty source tree, segmentation fault will happen.
>
Both C version and Perl version were fixed.
Index: htags/defineindex.c
===================================================================
RCS file: /cvsroot/global/global/htags/defineindex.c,v
retrieving revision 1.4
diff -u -r1.4 defineindex.c
--- htags/defineindex.c 3 Aug 2004 21:34:45 -0000 1.4
+++ htags/defineindex.c 7 Sep 2004 08:20:01 -0000
@@ -260,7 +260,7 @@
if (pclose(TAGS) < 0)
die("'%s' failed.", command);
STDOUT = old;
- if (aflag) {
+ if (aflag && alpha[0]) {
char *msg = (alpha_count == 1) ? "definition is containded." :
"definitions are containded.";
strbuf_sprintf(defines, "<A HREF=defines/%s.%s TITLE='%d
%s'>[%s]</A>\n", alpha_f, HTML, alpha_count, msg, alpha);
Index: htags/htags.in
===================================================================
RCS file: /cvsroot/global/global/htags/htags.in,v
retrieving revision 1.178
diff -u -r1.178 htags.in
--- htags/htags.in 1 Jul 2004 16:41:55 -0000 1.178
+++ htags/htags.in 7 Sep 2004 08:20:02 -0000
@@ -1705,7 +1705,7 @@
close(TAGS);
if ($?) { &'error("'$command' failed."); }
select($old);
- if ($'aflag) {
+ if ($'aflag && $alpha) {
push(@defines, "<A HREF=defines/$alpha_f.$'HTML
TITLE='$alpha_count definitions are containded.'>[$alpha]</A>\n");
if (!$'no_order_list) {
print ALPHA "</OL>\n";
----
Hideki IWAMOTO address@hidden