projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8680d3
)
Fix handling of bad config
author
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 9 Sep 2009 12:03:57 +0000
(14:03 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 9 Sep 2009 12:03:57 +0000
(14:03 +0200)
src/pazpar2.c
patch
|
blob
|
history
diff --git
a/src/pazpar2.c
b/src/pazpar2.c
index
56c18a5
..
56d2599
100644
(file)
--- a/
src/pazpar2.c
+++ b/
src/pazpar2.c
@@
-93,7
+93,7
@@
static int sc_main(
int session_timeout = 60;
const char *listener_override = 0;
const char *proxy_override = 0;
- struct conf_config *config;
+ struct conf_config *config = 0;
#ifndef WIN32
if (signal(SIGPIPE, SIG_IGN) == SIG_ERR)
@@
-116,9
+116,9
@@
static int sc_main(
daemon = 1;
break;
case 'f':
- config = read_config(arg);
+ config = config_create(arg);
if (!config)
- exit(1);
+ return 1;
sc_stop_config = config;
break;
case 'h':