]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/util/netatalk_conf.c
Fixes, from Anton Starikov
[netatalk.git] / libatalk / util / netatalk_conf.c
index ddd8e50a71eaa190dbd49a2743f0c5d68eedf7d9..baf17697676d035109fb32d73810bb347d4f8080 100644 (file)
@@ -504,7 +504,7 @@ static const char *getoption(const dictionary *conf, const char *vol, const char
     EC_INIT;
     const char *result = NULL;
 
-    if (!(result = iniparser_getstring(conf, vol, opt, NULL)))
+    if ((!(result = iniparser_getstring(conf, vol, opt, NULL))) && (def != NULL))
         result = iniparser_getstring(conf, def, opt, NULL);
     
 EC_CLEANUP: