Removing four unneeded checks for NULL.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5657 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
801b3ce675
commit
814a4220a2
|
@ -1,6 +1,7 @@
|
||||||
2016-02-21 Benno Schulenberg <bensberg@justemail.net>
|
2016-02-21 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* src/files.c (input_tab): If the first Tab added the part that all
|
* src/files.c (input_tab): If the first Tab added the part that all
|
||||||
matches have in common, don't require a third Tab to show the list.
|
matches have in common, don't require a third Tab to show the list.
|
||||||
|
* scr/global.c (thanks_for_all_the_fish): Remove unneeded checks.
|
||||||
|
|
||||||
2016-02-20 Benno Schulenberg <bensberg@justemail.net>
|
2016-02-20 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* src/search.c (get_history_completion): Avoid leaking memory
|
* src/search.c (get_history_completion): Avoid leaking memory
|
||||||
|
|
|
@ -1654,10 +1654,8 @@ void thanks_for_all_the_fish(void)
|
||||||
#ifndef DISABLE_SPELLER
|
#ifndef DISABLE_SPELLER
|
||||||
free(alt_speller);
|
free(alt_speller);
|
||||||
#endif
|
#endif
|
||||||
if (cutbuffer != NULL)
|
|
||||||
free_filestruct(cutbuffer);
|
free_filestruct(cutbuffer);
|
||||||
#ifndef DISABLE_JUSTIFY
|
#ifndef DISABLE_JUSTIFY
|
||||||
if (jusbuffer != NULL)
|
|
||||||
free_filestruct(jusbuffer);
|
free_filestruct(jusbuffer);
|
||||||
#endif
|
#endif
|
||||||
/* Free the memory associated with each open file buffer. */
|
/* Free the memory associated with each open file buffer. */
|
||||||
|
@ -1724,17 +1722,16 @@ void thanks_for_all_the_fish(void)
|
||||||
#endif /* !DISABLE_COLOR */
|
#endif /* !DISABLE_COLOR */
|
||||||
#ifndef DISABLE_HISTORIES
|
#ifndef DISABLE_HISTORIES
|
||||||
/* Free the search and replace history lists. */
|
/* Free the search and replace history lists. */
|
||||||
if (searchage != NULL)
|
|
||||||
free_filestruct(searchage);
|
free_filestruct(searchage);
|
||||||
if (replaceage != NULL)
|
|
||||||
free_filestruct(replaceage);
|
free_filestruct(replaceage);
|
||||||
#endif
|
#endif
|
||||||
/* Free the functions and shortcuts lists. */
|
/* Free the list of functions. */
|
||||||
while (allfuncs != NULL) {
|
while (allfuncs != NULL) {
|
||||||
subnfunc *f = allfuncs;
|
subnfunc *f = allfuncs;
|
||||||
allfuncs = allfuncs->next;
|
allfuncs = allfuncs->next;
|
||||||
free(f);
|
free(f);
|
||||||
}
|
}
|
||||||
|
/* Free the list of shortcuts. */
|
||||||
while (sclist != NULL) {
|
while (sclist != NULL) {
|
||||||
sc *s = sclist;
|
sc *s = sclist;
|
||||||
sclist = sclist->next;
|
sclist = sclist->next;
|
||||||
|
|
Loading…
Reference in New Issue