[libgda: 1/2] GdaDataModel: Fixing pointer check for NULL
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda: 1/2] GdaDataModel: Fixing pointer check for NULL
- Date: Tue, 4 Feb 2020 19:53:29 +0000 (UTC)
commit 112f0407260eb1ace3ab4915f1ac6330ec40551f
Author: Pavlo Solntsev <p sun fun gmail com>
Date: Fri Jan 31 13:39:47 2020 -0600
GdaDataModel: Fixing pointer check for NULL
libgda/gda-data-model.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libgda/gda-data-model.c b/libgda/gda-data-model.c
index e07587724..dfe4413cc 100644
--- a/libgda/gda-data-model.c
+++ b/libgda/gda-data-model.c
@@ -1534,7 +1534,7 @@ export_to_text_separated (GdaDataModel *model, const gint *cols, gint nb_cols,
}
else if (g_type_is_a (G_VALUE_TYPE (value), GDA_TYPE_TIME)) {
const GdaTime *tim = gda_value_get_time (value);
- if (tim != NULL)
+ if (!tim)
value = NULL;
}
else if (g_type_is_a (G_VALUE_TYPE (value), G_TYPE_DATE_TIME)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]