From: Günther Deschner Date: Tue, 12 May 2009 20:12:47 +0000 (+0200) Subject: s3-netdomjoin-gui: inspect the correct computername string before X-Git-Tag: tdb-1.1.5~603 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20b5fc02d2e97dbd51d84cc05ac887e274b14866;p=thirdparty%2Fsamba.git s3-netdomjoin-gui: inspect the correct computername string before enabling/disabling the change button. Guenther --- 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); } }