summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@enlightenment.org>2013-11-21 13:19:05 -0500
committerMike Blumenkrantz <zmike@enlightenment.org>2013-11-21 15:59:33 -0500
commit6b9f1d70bc7501b387bdd714d43833a27cff8b36 (patch)
treeabcdc2ed485fea280dd64021e4a1bb9c6abbc441
parentf18954cf522aeee8559e559e3073a7d230bf6579 (diff)
only set udisks2 drive model/vendor/serial if it's a non-blank string
-rw-r--r--src/bin/e_fm/e_fm_main_udisks2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/e_fm/e_fm_main_udisks2.c b/src/bin/e_fm/e_fm_main_udisks2.c
index 900e5799a..33c0d8176 100644
--- a/src/bin/e_fm/e_fm_main_udisks2.c
+++ b/src/bin/e_fm/e_fm_main_udisks2.c
@@ -700,11 +700,11 @@ _e_fm_main_udisks2_storage_drive_add(const char *udi, E_Storage *s, Eldbus_Messa
700 eina_stringshare_replace(&s->drive_type, media); 700 eina_stringshare_replace(&s->drive_type, media);
701 } 701 }
702 else if (!strcmp(key2, "Model")) 702 else if (!strcmp(key2, "Model"))
703 eina_stringshare_replace(&s->model, val); 703 eina_stringshare_replace(&s->model, (val && val[0]) ? val : NULL);
704 else if (!strcmp(key2, "Vendor")) 704 else if (!strcmp(key2, "Vendor"))
705 eina_stringshare_replace(&s->vendor, val); 705 eina_stringshare_replace(&s->vendor, (val && val[0]) ? val : NULL);
706 else if (!strcmp(key2, "Serial")) 706 else if (!strcmp(key2, "Serial"))
707 eina_stringshare_replace(&s->serial, val); 707 eina_stringshare_replace(&s->serial, (val && val[0]) ? val : NULL);
708 else if (!strcmp(key2, "MediaAvailable")) 708 else if (!strcmp(key2, "MediaAvailable"))
709 s->media_available = !!b; 709 s->media_available = !!b;
710 else if (!strcmp(key2, "Size")) 710 else if (!strcmp(key2, "Size"))