From: Mika Laitio Date: Sun, 13 Mar 2011 17:53:25 +0000 (+0200) Subject: Removed warning from uninitialized and unused parameters. X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a8f0802c22beeb4b9b3418c11069082e02fa30ce;p=libplp.git Removed warning from uninitialized and unused parameters. Signed-off-by: Mika Laitio --- diff --git a/src/DeviceConfig.cc b/src/DeviceConfig.cc index a78a62f..904257e 100644 --- a/src/DeviceConfig.cc +++ b/src/DeviceConfig.cc @@ -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; } diff --git a/src/FileUtil.cc b/src/FileUtil.cc index 7d95bef..0b97ff9 100644 --- a/src/FileUtil.cc +++ b/src/FileUtil.cc @@ -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] != '/') &&