diff options
-rw-r--r-- | source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c b/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c index 629a447a24..fd487480d3 100644 --- a/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c +++ b/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c @@ -853,7 +853,7 @@ static void callback_enter_hostname_and_unlock(GtkWidget *widget, gtk_label_set_text(GTK_LABEL(state->label_full_computer_name), str); free(str); - if (state->hostname_changed && str && str[0] != 0 && str[0] != '.') { + if (state->hostname_changed && entry_text && entry_text[0] != 0 && entry_text[0] != '.') { gtk_widget_set_sensitive(GTK_WIDGET(state->button_ok), TRUE); } } |