From 7d17cd00fbcfa3c40cd47721afdae6a7ef329875 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Tue, 14 Sep 2021 23:36:25 +0200 Subject: [PATCH] Minor modifications --- debian/var/models/example.xml | 2 +- src/model.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/debian/var/models/example.xml b/debian/var/models/example.xml index 0f2908a..c9aa29a 100644 --- a/debian/var/models/example.xml +++ b/debian/var/models/example.xml @@ -9,7 +9,7 @@ Modèle de test Adrien Bourmault 1 - 1629822515 + 1629822515 1.0 diff --git a/src/model.c b/src/model.c index 90917d0..98b8de0 100644 --- a/src/model.c +++ b/src/model.c @@ -341,8 +341,7 @@ static inline void CreateField(ModelField_t *modelField, static inline int ModelParseFile(Model_t *model) { - char date[25]; - + // XML expected file structure ModelField_t identityField; ModelField_t identityNameField; ModelField_t identityAuthorField; @@ -352,6 +351,9 @@ static inline int ModelParseFile(Model_t *model) ModelField_t parametersModelizationField; ModelField_t parametersSpaceField; + // Temporary variables to store values to modify + char date[25]; + CreateField(&identityField, "identity", false, NULL, 0, &identityNameField, NULL);