summaryrefslogtreecommitdiffstats
path: root/src/Date.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Date.cpp')
-rw-r--r--src/Date.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Date.cpp b/src/Date.cpp
index 46ef14e..1aebfab 100644
--- a/src/Date.cpp
+++ b/src/Date.cpp
@@ -68,7 +68,8 @@ timeval Date::GetValue()
int32_t tv_sec = 0;
int32_t tv_usec = 0;
plist_get_date_val(_node, &tv_sec, &tv_usec);
- return {tv_sec, tv_usec};
+ timeval t = {tv_sec, tv_usec};
+ return t;
}
};