[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] ctags segmentation fault
From: |
Hideki IWAMOTO |
Subject: |
[PATCH] ctags segmentation fault |
Date: |
Sat, 05 Nov 2005 03:11:11 +0900 |
CVS version of ctags causes segmentation fault when --cxref(-x) option is used.
This is the patch for correcting it.
====== current cvs version ======
address@hidden lib-src]$ ./ctags -x leditcfns.c
set_proc_str 13 leditcfns.c set_proc_str(
switch_to_proc 6 leditcfns.c switch_to_proc(
Segmentation fault (core dumped)
====== patched version ======
address@hidden lib-src]$ ./ctags -x leditcfns.c
set_proc_str 13 leditcfns.c set_proc_str(
switch_to_proc 6 leditcfns.c switch_to_proc(
Index: etags.c
===================================================================
RCS file: /cvsroot/emacs/emacs/lib-src/etags.c,v
retrieving revision 3.49
diff -u -p -r3.49 etags.c
--- etags.c 20 Oct 2005 13:13:17 -0000 3.49
+++ etags.c 4 Nov 2005 17:58:13 -0000
@@ -1442,10 +1442,10 @@ main (argc, argv)
while (nincluded_files-- > 0)
fprintf (tagf, "\f\n%s,include\n", *included_files++);
- }
- if (fclose (tagf) == EOF)
- pfatal (tagfile);
+ if (fclose (tagf) == EOF)
+ pfatal (tagfile);
+ }
exit (EXIT_SUCCESS);
}
----
Hideki IWAMOTO address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] ctags segmentation fault,
Hideki IWAMOTO <=