A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://gitlab.com/OldManProgrammer/unix-tree/-/merge_requests/4 below:

list.c: Clear pointer after free_dir (!4) · Merge requests · Old Man Programmer

list.c: Clear pointer after free_dir (!4) · Merge requests · Old Man Programmer / Tree · GitLab Skip to content The source project of this merge request has been removed. list.c: Clear pointer after free_dir

This fixes a SIGSEGV when tree was invoked with a non-existent directory as the Nth argument:

$ tree foo nonexistent
foo
└── bar
nonexistent
Segmentation fault (core dumped)

There are a few places where free_dir is used in a loop not clearing the pointer in between iterations. Fix them all.

Signed-off-by: Erik Skultety eskultet@redhat.com


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4