aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/fs/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/fs/search.c')
-rw-r--r--src/plugins/fs/search.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/plugins/fs/search.c b/src/plugins/fs/search.c
index f70f6630..916504a5 100644
--- a/src/plugins/fs/search.c
+++ b/src/plugins/fs/search.c
@@ -510,8 +510,8 @@ void on_fssearchbutton_clicked_fs(gpointer dummy2,
510 "searchNamespaceComboBoxEntry"); 510 "searchNamespaceComboBoxEntry");
511 if (TRUE == gtk_combo_box_get_active_iter(GTK_COMBO_BOX(searchNamespaceGtkCB), 511 if (TRUE == gtk_combo_box_get_active_iter(GTK_COMBO_BOX(searchNamespaceGtkCB),
512 &iter)) { 512 &iter)) {
513 const char * descStr; 513 char * descStr;
514 const char * ns; 514 char * ns;
515 515
516 ns = NULL; 516 ns = NULL;
517 descStr = NULL; 517 descStr = NULL;
@@ -527,8 +527,9 @@ void on_fssearchbutton_clicked_fs(gpointer dummy2,
527 ns = NULL; 527 ns = NULL;
528 } else { 528 } else {
529 GE_ASSERT(ectx, strlen(ns) == sizeof(EncName) - 1); 529 GE_ASSERT(ectx, strlen(ns) == sizeof(EncName) - 1);
530 if (descStr == NULL) 530 if ( (descStr == NULL) &&
531 descStr = ns; 531 (ns != NULL) )
532 descStr = STRDUP(ns);
532 } 533 }
533 if (ns != NULL) { 534 if (ns != NULL) {
534 char * ustring; 535 char * ustring;
@@ -550,6 +551,8 @@ void on_fssearchbutton_clicked_fs(gpointer dummy2,
550 } 551 }
551 FREE(ustring); 552 FREE(ustring);
552 } 553 }
554 FREENONNULL(descStr);
555 FREENONNULL(ns);
553 } 556 }
554 if (uri == NULL) 557 if (uri == NULL)
555 uri = ECRS_parseCharKeywordURI(ectx, searchString); 558 uri = ECRS_parseCharKeywordURI(ectx, searchString);