]> pilppa.com Git - libplp.git/commitdiff
Removed warning from uninitialized and unused parameters.
authorMika Laitio <lamikr@pilppa.org>
Sun, 13 Mar 2011 17:53:25 +0000 (19:53 +0200)
committerMika Laitio <lamikr@pilppa.org>
Sun, 13 Mar 2011 17:53:25 +0000 (19:53 +0200)
Signed-off-by: Mika Laitio <lamikr@pilppa.org>
src/DeviceConfig.cc
src/FileUtil.cc

index a78a62f25ef2bbcdc908ea29dd624e6ed2b2b64e..904257ec7f229743831c97a4d1409062b7478039 100644 (file)
@@ -80,7 +80,7 @@ string DeviceConfig::get_file_name(string device_id_param) {
        string  fname;
 
        fname   = DEVICE_CONFIG__FILE_NAME;
-       ret_val = get_dir_name(device_id);
+       ret_val = get_dir_name(device_id_param);
        ret_val = FileUtil::concat_paths(ret_val, fname);
        return ret_val;
 }
index 7d95bef1483b32a7a8333923c2d30cf1dbe2d571..0b97ff94521ffa185533d50a2b8b7b4359252962 100644 (file)
@@ -114,6 +114,7 @@ std::ofstream *FileUtil::open_for_writing(const char *f_path) {
        bool            b_flg;
 
        ret_val = NULL;
+       b_flg   = true;
        if (f_path != NULL) {
                b_count = strlen(f_path);
                if ((f_path[b_count - 1] != '/') &&