Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Leap:15.5:Update
lifelines
lifelines-3ad4571-array.dif
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File lifelines-3ad4571-array.dif of Package lifelines
--- src/liflines/ask.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- src/liflines/ask.c +++ src/liflines/ask.c 2019-08-23 09:36:21.892382295 +0000 @@ -178,6 +178,7 @@ ask_for_file_worker (STRING mode, rtn = ask_for_output_filename(ttl, path, prompt, fname, sizeof(fname)); if (pfname) { + free(*pfname); if (fname[0]) *pfname = strdup(fname); else @@ -504,7 +505,7 @@ ask_for_record (STRING idstr, INT letr) STRING ask_for_record_key (STRING title, STRING prompt) { - char answer[MAXPATHLEN]; + char answer[MAXPATHLEN] = {'\0'}; if (!ask_for_string(title, prompt, answer, sizeof(answer))) return NULL; if (!answer[0]) return NULL;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor