Closed bauhaus93 closed 4 years ago
I fixed it in 58cd8d1. A similar problem occurred for the other clients (and original for the server too). lcdexec -h
still doesn't work, if no main menu is set, however. I will try to find a way around that.
Thank you for creating the issue and the quick help.
In PR #7: When the
lcdproc
executable gets invoked in help mode (lcdproc -h
), the help gets printed, but the program throws a segmentation fault.In
clients/lcdproc/main.c
: It seems to me, that the program doesn't terminate after printing the help, but instead resumes to normal program execution and trying to connect to the LCDd server (having not loaded the global variables inprocess_config
, because help mode). As a result, theserver
global variable remains NULL and is passed tosock_connect
, wheregethostbyname()
is called with it, causing the segfault.