summaryrefslogtreecommitdiff
path: root/zyklonb.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-07-11 14:47:45 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-07-11 14:48:00 +0200
commit5692da47bef5402d37e131c1d55fbad864bd066d (patch)
treedc004a7daf95190fb2d28d548ec176f78924b91c /zyklonb.c
parentc3d39dab5b0acdcd971e5365fb1967cbf243bcce (diff)
downloadxK-5692da47bef5402d37e131c1d55fbad864bd066d.tar.gz
xK-5692da47bef5402d37e131c1d55fbad864bd066d.tar.xz
xK-5692da47bef5402d37e131c1d55fbad864bd066d.zip
Fix various issues reported by Coverity
Diffstat (limited to 'zyklonb.c')
-rw-r--r--zyklonb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/zyklonb.c b/zyklonb.c
index 06988d0..c2e466c 100644
--- a/zyklonb.c
+++ b/zyklonb.c
@@ -673,13 +673,12 @@ prepare_recovery_environment (void)
break;
}
- if (iter)
+ if (*iter)
g_startup_reason_location = iter;
else
{
+ g_startup_reason_location = g_recovery_env.vector + g_recovery_env.len;
str_vector_add (&g_recovery_env, "");
- g_startup_reason_location =
- g_recovery_env.vector + g_recovery_env.len - 1;
}
}