diff options
author | Jonathan Beck | 2009-10-17 23:03:50 +0200 |
---|---|---|
committer | Jonathan Beck | 2009-10-17 23:03:50 +0200 |
commit | d21c7d4a9c90232bd8f444c0b620f8fe465387d5 (patch) | |
tree | c0f50fe4371beb19b39323e84d3790136fda813b /src/plist.c | |
parent | a2588b4b19e898d483d5512cf974e1ccda45d5b6 (diff) | |
download | libplist-d21c7d4a9c90232bd8f444c0b620f8fe465387d5.tar.gz libplist-d21c7d4a9c90232bd8f444c0b620f8fe465387d5.tar.bz2 |
Fixes for dates.
Diffstat (limited to 'src/plist.c')
-rw-r--r-- | src/plist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plist.c b/src/plist.c index ed73d53..95b9593 100644 --- a/src/plist.c +++ b/src/plist.c @@ -472,8 +472,8 @@ static void plist_get_type_and_value(plist_t node, plist_type * type, void *valu break; case PLIST_DATE: //exception : here we use memory on the stack since it is just a temporary buffer - (*((GTimeVal **) value))->tv_sec = data->timeval.tv_sec; - (*((GTimeVal **) value))->tv_usec = data->timeval.tv_usec; + ((GTimeVal *) value)->tv_sec = data->timeval.tv_sec; + ((GTimeVal *) value)->tv_usec = data->timeval.tv_usec; break; case PLIST_ARRAY: case PLIST_DICT: |