changed order of setting BASEDIR variable - fiche - A pastebin adjusted for gopher use
(HTM) git clone git://vernunftzentrum.de/fiche.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit b932c45685af63fa5491cd52e00a9a4819aac7cd
(DIR) parent 832fc9b695825461fb7981e9a065d4c4d4a10478
(HTM) Author: solusipse <solus1ps3@gmail.com>
Date: Fri, 6 Sep 2013 14:40:09 +0200
changed order of setting BASEDIR variable
Diffstat:
fiche.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/fiche.c b/fiche.c
@@ -29,8 +29,10 @@ int main(int argc, char **argv)
{
time_seed = time(0);
- set_basedir();
parse_parameters(argc, argv);
+ if (BASEDIR == NULL)
+ set_basedir();
+
startup_message();
int listen_socket, address_lenght, optval = 1;