From a8f0802c22beeb4b9b3418c11069082e02fa30ce Mon Sep 17 00:00:00 2001 From: Mika Laitio Date: Sun, 13 Mar 2011 19:53:25 +0200 Subject: [PATCH] Removed warning from uninitialized and unused parameters. Signed-off-by: Mika Laitio --- src/DeviceConfig.cc | 2 +- src/FileUtil.cc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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] != '/') && -- 2.41.0