summaryrefslogtreecommitdiff
path: root/zyklonb.c
diff options
context:
space:
mode:
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;
}
}