The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/cscope#72bd7b5480e8c9cc400dcc3cbeb23e764367aa06
15 lines
604 B
Diff
15 lines
604 B
Diff
diff -up ./src/find.c.orig ./src/find.c
|
|
--- ./src/find.c.orig 2014-04-15 12:17:44.412383314 -0400
|
|
+++ ./src/find.c 2014-04-15 12:19:17.122065215 -0400
|
|
@@ -1201,7 +1201,9 @@ getposting(void)
|
|
static void
|
|
putpostingref(POSTING *p, char *pat)
|
|
{
|
|
- static char function[PATLEN + 1]; /* function name */
|
|
+ // initialize function to "unknown" so that the first line of temp1
|
|
+ // is properly formed if symbol matches a header file entry first time
|
|
+ static char function[PATLEN + 1] = "unknown";/* function name */
|
|
|
|
if (p->fcnoffset == 0) {
|
|
if (p->type == FCNDEF) { /* need to find the function name */
|