]> pilppa.com Git - libplp.git/commitdiff
fix possibility for unitialized variable
authorMika Laitio <lamikr@pilppa.org>
Thu, 16 Aug 2012 12:14:01 +0000 (15:14 +0300)
committerMika Laitio <lamikr@pilppa.org>
Thu, 16 Aug 2012 12:14:01 +0000 (15:14 +0300)
Signed-off-by: Mika Laitio <lamikr@pilppa.org>
src/DeviceConfig.cc

index a25727565de371aceef170389c994c3d5fac2ced..7b68473133988540b1b1a3f00d6cc001450072f9 100644 (file)
@@ -159,6 +159,7 @@ bool DeviceConfig::set_config_value(string key,
        string  cfg_fl;
        bool    ret_val;
 
+       ret_val = PLP_ERR;
        cfg_dir = get_config_path_name();
        cfg_fl  = DEVICE_CONFIG__FILE_NAME;
        if (uci_handle != NULL) {