if (address == NULL || *address == 0)
if (address == NULL)
DialogOKClicked (GtkButton *button, gpointer data){    PluginInstance* This = (PluginInstance*) data;    GtkWidget* dialogWindow = gtk_object_get_data(GTK_OBJECT(button), DIALOGID);    char *url;    gtk_object_remove_data(GTK_OBJECT(button), DIALOGID);    if (This->pluginsFileUrl != NULL)    {        /* Get the JavaScript command string */        static const char buf[] =           "javascript:netscape.softupdate.Trigger.StartSoftwareUpdate(\"%s\")";        url = NPN_MemAlloc(strlen(This->pluginsFileUrl) + (sizeof(buf) - 2));        if (url != NULL)        {            /* Insert the file URL into the JavaScript command */            sprintf(url, buf, This->pluginsFileUrl);            NPN_GetURL(This->instance, url, TARGET);            NPN_MemFree(url);        }    }    else    {        /* If necessary, get the default plug-ins page resource */        char* address = This->pluginsPageUrl;        if (address == NULL || *address == 0)        {            address = PLUGINSPAGE_URL;        }        url = NPN_MemAlloc(strlen(address) + 1 + strlen(This->type)+1);        if (url != NULL)        {                /* Append the MIME type to the URL */            sprintf(url, "%s?%s", address, This->type);            if (strcmp (This->type, JVM_MINETYPE) == 0)             {                NPN_GetURL(This->instance, JVM_SMARTUPDATE_URL , TARGET);            }            else             {                NPN_GetURL(This->instance, url, TARGET);            }            NPN_MemFree(url);        }    }    destroyWidget(This);}