You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some debugging will needed to be done to find out what's specifically causing the segfault, and some type of check to see if the file is a proper tags file.
The text was updated successfully, but these errors were encountered:
* tagstack.c:fix curr warning
This fixes the warning
```
tagstack.c: In function ‘pop’:
tagstack.c:37:10: warning: ‘curr’ may be used uninitialized in this
function [-Wmaybe-uninitialized]
curr->p = NULL;
```
https://travis-ci.com/shnupta/bric/jobs/143067788#L512
This gets rid of the warning. I changed 'curr' to 'node' since we're
dealing with a "Linked List" here.
I don't see that calloc or malloc is needed. I'm initializing `node'
with `foo` after foo is initialized. Before, the warning was happening
because of the node->p = NULL assignment; if the while loop never
executes, node is not initialized before that assignment.
* tags document:updated with accurate info
(related to #139)
* tagstack.c:fix curr warning
This fixes the warning
```
tagstack.c: In function ‘pop’:
tagstack.c:37:10: warning: ‘curr’ may be used uninitialized in this
function [-Wmaybe-uninitialized]
curr->p = NULL;
```
https://travis-ci.com/shnupta/bric/jobs/143067788#L512
This gets rid of the warning. I changed 'curr' to 'node' since we're
dealing with a "Linked List" here.
I don't see that calloc or malloc is needed. I'm initializing `node'
with `foo` after foo is initialized. Before, the warning was happening
because of the node->p = NULL assignment; if the while loop never
executes, node is not initialized before that assignment.
* tags document:updated with accurate info
(related to #139)
If the tags file is incorrectly formatted, bric will segfault when using the tagstack function.
To generate the correct tags file, the user must use Exuberant Ctags.
On Debian, the package exuberant-tags can be installed.
See this for more info.
https://stackoverflow.com/questions/2968542/the-ctags-command-doesnt-recurse-saying-it-is-not-a-regular-file
Some debugging will needed to be done to find out what's specifically causing the segfault, and some type of check to see if the file is a proper tags file.
The text was updated successfully, but these errors were encountered: