summaryrefslogtreecommitdiffstats
path: root/lasso/xml/lib_authentication_statement.c
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2006-12-28 10:56:13 +0000
committerFrederic Peters <fpeters@entrouvert.com>2006-12-28 10:56:13 +0000
commitd5c4e974ebff28e79c5aeb4f180899e2a61b7ae1 (patch)
treed762a059d60e8110a5bc2f1a68f6d4c6fa36ddbd /lasso/xml/lib_authentication_statement.c
parent7a78af3361d314541891fc30c4787a9d756844f9 (diff)
downloadlasso-d5c4e974ebff28e79c5aeb4f180899e2a61b7ae1.tar.gz
lasso-d5c4e974ebff28e79c5aeb4f180899e2a61b7ae1.tar.xz
lasso-d5c4e974ebff28e79c5aeb4f180899e2a61b7ae1.zip
coding style improvements
Diffstat (limited to 'lasso/xml/lib_authentication_statement.c')
-rw-r--r--lasso/xml/lib_authentication_statement.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lasso/xml/lib_authentication_statement.c b/lasso/xml/lib_authentication_statement.c
index cf5439ad..d08ffd52 100644
--- a/lasso/xml/lib_authentication_statement.c
+++ b/lasso/xml/lib_authentication_statement.c
@@ -156,10 +156,11 @@ lasso_lib_authentication_statement_new_full(const char *authenticationMethod,
statement = g_object_new(LASSO_TYPE_LIB_AUTHENTICATION_STATEMENT, NULL);
statement->AuthenticationMethod = g_strdup(authenticationMethod);
- if (authenticationInstant == NULL)
+ if (authenticationInstant == NULL) {
time = lasso_get_current_time();
- else
+ } else {
time = g_strdup(authenticationInstant);
+ }
statement->AuthenticationInstant = time;