File src/filehandling_functions.c changed (mode: 100644) (index 12217cd..9a4c62e) |
... |
... |
opendirfile(int number) |
579 |
579 |
char *bufend; /* points at the trailing 0 of initial name */ |
char *bufend; /* points at the trailing 0 of initial name */ |
580 |
580 |
char command[1128]; /* holds command to evaluate for decompression of file */ |
char command[1128]; /* holds command to evaluate for decompression of file */ |
581 |
581 |
int i, j; |
int i, j; |
582 |
|
char *tmpfilename; |
|
|
582 |
|
char *tmpfilename = NULL; |
583 |
583 |
int *fileendentries = xmalloc(infopathcount * sizeof(int)); |
int *fileendentries = xmalloc(infopathcount * sizeof(int)); |
584 |
584 |
int dir_found = 0; |
int dir_found = 0; |
585 |
585 |
int dircount = 0; |
int dircount = 0; |
|
... |
... |
addrawpath(char *filename) |
845 |
845 |
{ |
{ |
846 |
846 |
int len = strlen(filename); |
int len = strlen(filename); |
847 |
847 |
int i, pos; |
int i, pos; |
848 |
|
char tmp; |
|
|
848 |
|
char tmp = '\0'; |
849 |
849 |
for (i = len; i >= 0; i--) |
for (i = len; i >= 0; i--) |
850 |
850 |
{ |
{ |
851 |
851 |
if (filename[i] == '/') |
if (filename[i] == '/') |
File src/mainfunction.c changed (mode: 100644) (index cd6f3ff..70fdfa7) |
... |
... |
work(char ***message, char **type, long *lines, FILE * id, int tag_table_pos) |
55 |
55 |
int key = 0; |
int key = 0; |
56 |
56 |
int return_value; |
int return_value; |
57 |
57 |
int statusline = FREE; |
int statusline = FREE; |
58 |
|
char *token, *tmp; |
|
|
58 |
|
char *token; |
|
59 |
|
char *tmp = NULL; |
59 |
60 |
if (rval.file) /* if the static variable was allocated, free it */ |
if (rval.file) /* if the static variable was allocated, free it */ |
60 |
61 |
{ |
{ |
61 |
62 |
xfree(rval.file); |
xfree(rval.file); |
|
... |
... |
work(char ***message, char **type, long *lines, FILE * id, int tag_table_pos) |
330 |
331 |
return_value = -1; |
return_value = -1; |
331 |
332 |
if (indirect) /* the info is of indirect type; we'll search through several files */ |
if (indirect) /* the info is of indirect type; we'll search through several files */ |
332 |
333 |
{ |
{ |
333 |
|
FILE *fd; |
|
|
334 |
|
FILE *fd = NULL; |
334 |
335 |
long tokenpos; |
long tokenpos; |
335 |
336 |
long starttokenpos; |
long starttokenpos; |
336 |
337 |
long filelen; |
long filelen; |