aboutsummaryrefslogtreecommitdiffhomepage
path: root/env_universal.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-01-12 13:53:59 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-01-12 13:53:59 -0800
commit40e223c12d7b0199098408201f1b15e70a9918b7 (patch)
tree2372bb38c7c46c8dcd150693ffcc26bc8a5724ac /env_universal.cpp
parentb2c78dbd57a7c891aa176f1a571f36bd765e9ffb (diff)
Additional miscellaneous fixes based on cppcheck static analysis
Diffstat (limited to 'env_universal.cpp')
-rw-r--r--env_universal.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/env_universal.cpp b/env_universal.cpp
index a9e7462a..ed7396f6 100644
--- a/env_universal.cpp
+++ b/env_universal.cpp
@@ -426,8 +426,6 @@ void env_universal_barrier()
void env_universal_set(const wcstring &name, const wcstring &value, bool exportv)
{
- message_t *msg;
-
if (!s_env_univeral_inited)
return;
@@ -439,7 +437,7 @@ void env_universal_set(const wcstring &name, const wcstring &value, bool exportv
}
else
{
- msg = create_message(exportv?SET_EXPORT:SET,
+ message_t *msg = create_message(exportv?SET_EXPORT:SET,
name.c_str(),
value.c_str());
@@ -459,7 +457,6 @@ int env_universal_remove(const wchar_t *name)
{
int res;
- message_t *msg;
if (!s_env_univeral_inited)
return 1;
@@ -476,7 +473,7 @@ int env_universal_remove(const wchar_t *name)
}
else
{
- msg= create_message(ERASE, name, 0);
+ message_t *msg = create_message(ERASE, name, 0);
msg->count=1;
env_universal_server.unsent.push(msg);
env_universal_barrier();