summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAllen Winter <allen.winter@kdab.com>2016-11-28 10:56:06 -0500
committerAllen Winter <allen.winter@kdab.com>2016-11-28 10:56:06 -0500
commit8e8ac35712ff6eab4803a3a97445caa645ee33ee (patch)
treeb8114d9544bf52ed39c88f2a6904bc238f54c57f /src/test
parent28922b8acd245edd1af35d4e7f5714a65b032aff (diff)
downloadlibical-git-8e8ac35712ff6eab4803a3a97445caa645ee33ee.tar.gz
src/test/regression.c - fix build with MSVC
Diffstat (limited to 'src/test')
-rw-r--r--src/test/regression.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/regression.c b/src/test/regression.c
index b1f8963e..82476c92 100644
--- a/src/test/regression.c
+++ b/src/test/regression.c
@@ -464,6 +464,7 @@ void test_components()
{
icalcomponent *c;
icalcomponent *child;
+ int estate;
c = icalcomponent_vanew(
ICAL_VCALENDAR_COMPONENT,
@@ -503,7 +504,7 @@ void test_components()
icalcomponent_free(c);
- int estate = icalerror_get_errors_are_fatal();
+ estate = icalerror_get_errors_are_fatal();
icalerror_set_errors_are_fatal(0);
c = icalcomponent_new_from_string(bad_child);
ok("parse failed as expected", (c == NULL));