Still segfaults on read from URL.
This commit is contained in:
parent
3470f27585
commit
8334e2bf1f
2 changed files with 5 additions and 4 deletions
|
|
@ -16,6 +16,9 @@
|
|||
#include <unistd.h>
|
||||
#include <wchar.h>
|
||||
|
||||
/* libcurl, used for io */
|
||||
#include <curl/curl.h>
|
||||
|
||||
#include "version.h"
|
||||
#include "conspage.h"
|
||||
#include "consspaceobject.h"
|
||||
|
|
@ -84,6 +87,7 @@ int main( int argc, char *argv[] ) {
|
|||
bool show_prompt = false;
|
||||
|
||||
setlocale( LC_ALL, "" );
|
||||
curl_global_init(CURL_GLOBAL_DEFAULT);
|
||||
|
||||
while ( ( option = getopt( argc, argv, "cpdv:" ) ) != -1 ) {
|
||||
switch ( option ) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue