]> pilppa.com Git - libplp.git/commitdiff
remove warning from possible unitialized variable
authorMika Laitio <lamikr@pilppa.org>
Sat, 16 Apr 2011 21:45:03 +0000 (00:45 +0300)
committerMika Laitio <lamikr@pilppa.org>
Sat, 16 Apr 2011 21:45:03 +0000 (00:45 +0300)
Signed-off-by: Mika Laitio <lamikr@pilppa.org>
src/DeviceConfig.cc

index 18870b7473bd1ab967dde5d1ba6d8113f7e94c91..c3e8bad047e2a915f18b493fadd46d6b40f0254e 100644 (file)
@@ -95,6 +95,7 @@ static bool set_config_value_to_section(ConfigHandle *cfg_handle,
        bool                    ret_val;
 
        ret_val = false;
+       err_flg = UCI_OK;
        if ((cfg_handle != NULL) &&
            (cfg_handle->_ctx != NULL) &&
            (cfg_handle->_pkg != NULL) &&