diff options
author | Paweł Zuzelski <pawelz@pld-linux.org> | 2010-01-25 12:55:44 +0100 |
---|---|---|
committer | Paweł Zuzelski <pawelz@pld-linux.org> | 2010-01-25 12:55:44 +0100 |
commit | 238b199ee595df2f6e6db299d8de4de9193e4b10 (patch) | |
tree | 78440019569d9ab8aaec307285613c23015c7b64 /src/callbacks.c | |
parent | c5621d312b1ce79a6242a4aa4a9cb4b3181c6d33 (diff) |
handle empty/unset authentication_handler
treat empty string as unset variable.
don't try to read stdout, if there is no stdout (this fixes segv reported by
Dieter).
Diffstat (limited to 'src/callbacks.c')
-rw-r--r-- | src/callbacks.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/callbacks.c b/src/callbacks.c index 80846e3..3aa70fb 100644 --- a/src/callbacks.c +++ b/src/callbacks.c @@ -28,11 +28,11 @@ set_proxy_url() { void set_authentication_handler() { - if (uzbl.behave.authentication_handler) - soup_session_remove_feature_by_type + if (uzbl.behave.authentication_handler == NULL || *uzbl.behave.authentication_handler == NULL) + soup_session_add_feature_by_type (uzbl.net.soup_session, (GType) WEBKIT_TYPE_SOUP_AUTH_DIALOG); else - soup_session_add_feature_by_type + soup_session_remove_feature_by_type (uzbl.net.soup_session, (GType) WEBKIT_TYPE_SOUP_AUTH_DIALOG); return; } |