[libgxps] lib: Prevent created property being set when content-type is set
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgxps] lib: Prevent created property being set when content-type is set
- Date: Thu, 22 Dec 2016 14:53:39 +0000 (UTC)
commit ae5f6a38b48462396bd8635b4bb4158af1b23f6a
Author: Philip Withnall <withnall endlessm com>
Date: Tue Dec 20 19:32:53 2016 +0000
lib: Prevent created property being set when content-type is set
There was a missing break statement.
Coverity ID: 1391236
https://bugzilla.gnome.org/show_bug.cgi?id=776323
libgxps/gxps-core-properties.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libgxps/gxps-core-properties.c b/libgxps/gxps-core-properties.c
index 2071ce7..6c173ae 100644
--- a/libgxps/gxps-core-properties.c
+++ b/libgxps/gxps-core-properties.c
@@ -363,6 +363,7 @@ core_props_end_element (GMarkupParseContext *context,
break;
case CP_CONTENT_TYPE:
priv->content_type = g_strndup (text, text_len);
+ break;
case CP_CREATED:
priv->created = w3cdtf_to_time_t (text);
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]