fixes missing assignment in API 'listconfig' and removes unnecessary project configur...
authorTobias Jahnke <tjahnk@users.noreply.github.com>
Mon, 14 Aug 2017 12:09:21 +0000 (14:09 +0200)
committerTobias Jahnke <tjahnk@users.noreply.github.com>
Mon, 14 Aug 2017 12:11:44 +0000 (14:11 +0200)
nbproject/configurations.xml
ucs2-afb/ucs_binding.c

index aaa074a..250241a 100644 (file)
           <incDir>
             <pElem>ucs2-lib/unicens/src</pElem>
           </incDir>
-          <preprocessorList>
-            <Elem>UCS2_CFG_PATH="/etc/default/ucs:./data"</Elem>
-          </preprocessorList>
         </cTool>
       </folder>
       <item path="ucs2-afb/ucs_apihat.c" ex="false" tool="0" flavor2="3">
index 8a1174c..7d27fc6 100644 (file)
@@ -521,7 +521,7 @@ PUBLIC void ucs2_listconfig (struct afb_req request) {
 
     queryJ = afb_req_json(request);
     if (queryJ && json_object_object_get_ex (queryJ, "cfgpath" , &tmpJ)) {
-        strdup (json_object_get_string(tmpJ));
+        dirList = strdup (json_object_get_string(tmpJ));
     } else {    
         dirList = strdup (UCS2_CFG_PATH); 
         AFB_NOTICE ("fgpath:missing uses UCS2_CFG_PATH=%s", UCS2_CFG_PATH);