From 20b5fc02d2e97dbd51d84cc05ac887e274b14866 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Tue, 12 May 2009 22:12:47 +0200 Subject: [PATCH] s3-netdomjoin-gui: inspect the correct computername string before enabling/disabling the change button. Guenther --- source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c b/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c index 629a447a245..fd487480d3c 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); } } -- 2.34.1