summaryrefslogtreecommitdiff
path: root/libpurple/request.c
diff options
context:
space:
mode:
authorWill Thompson <resiak@pidgin.im>2007-12-18 16:02:35 +0000
committerWill Thompson <resiak@pidgin.im>2007-12-18 16:02:35 +0000
commit52ab9bcd9a28a3f4e28101af51637db29974ac88 (patch)
tree6153cef73ed4fa436d096315f1e66035ebd9bd14 /libpurple/request.c
parent156d69d28f550f837070280e669227ebf66e3ab8 (diff)
downloadpidgin-52ab9bcd9a28a3f4e28101af51637db29974ac88.tar.gz
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
shouldn't be.
Diffstat (limited to 'libpurple/request.c')
-rw-r--r--libpurple/request.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libpurple/request.c b/libpurple/request.c
index 27d3cc8e89..1321c3dfb3 100644
--- a/libpurple/request.c
+++ b/libpurple/request.c
@@ -1208,6 +1208,8 @@ purple_request_choice_varg(void *handle, const char *title,
g_return_val_if_fail(ok_text != NULL, NULL);
g_return_val_if_fail(ok_cb != NULL, NULL);
+ g_return_val_if_fail(cancel_text != NULL, NULL);
+ g_return_val_if_fail(cancel_cb != NULL, NULL);
ops = purple_request_get_ui_ops();
@@ -1296,6 +1298,8 @@ purple_request_fields(void *handle, const char *title, const char *primary,
g_return_val_if_fail(fields != NULL, NULL);
g_return_val_if_fail(ok_text != NULL, NULL);
g_return_val_if_fail(ok_cb != NULL, NULL);
+ g_return_val_if_fail(cancel_text != NULL, NULL);
+ g_return_val_if_fail(cancel_cb != NULL, NULL);
ops = purple_request_get_ui_ops();