[gthumb] initialize the type to null and set it to null if a void string is returned
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] initialize the type to null and set it to null if a void string is returned
- Date: Wed, 20 Jul 2011 21:51:18 +0000 (UTC)
commit 3dda6555fa182e4eba71c6b0a47a4a51f3b01c15
Author: Paolo Bacchilega <paobac src gnome org>
Date: Wed Jul 20 12:40:17 2011 +0200
initialize the type to null and set it to null if a void string is returned
extensions/exiv2_tools/exiv2-utils.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/extensions/exiv2_tools/exiv2-utils.cpp b/extensions/exiv2_tools/exiv2-utils.cpp
index 7d82f2d..a0f5ecb 100644
--- a/extensions/exiv2_tools/exiv2-utils.cpp
+++ b/extensions/exiv2_tools/exiv2-utils.cpp
@@ -835,12 +835,12 @@ const char *
gth_main_get_metadata_type (gpointer metadata,
const char *attribute)
{
- const char *value_type;
+ const char *value_type = NULL;
GthMetadataInfo *metadatum_info;
if (GTH_IS_METADATA (metadata)) {
value_type = gth_metadata_get_value_type (GTH_METADATA (metadata));
- if (g_strcmp0 (value_type, "Undefined") == 0)
+ if ((g_strcmp0 (value_type, "Undefined") == 0) || (g_strcmp0 (value_type, "") == 0))
value_type = NULL;
if (value_type != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]