diff options
author | Philip Withnall <philip@tecnocode.co.uk> | 2010-04-10 18:13:52 +0100 |
---|---|---|
committer | Philip Withnall <philip@tecnocode.co.uk> | 2010-04-10 18:13:52 +0100 |
commit | ca20862ec3235e25763317ebdea60146327ecd14 (patch) | |
tree | c4aab29d7fc24d52fc719cf6954c39778dc3855b /gdata/gdata-upload-stream.c | |
parent | f76e3ce0fdd14beb58fd1dae48eb865e21a54ee3 (diff) | |
download | libgdata-ca20862ec3235e25763317ebdea60146327ecd14.tar.gz |
[core] Tidy up preconditions
Tidy up the public API preconditions and ensure they're present for all
public (and most semi-public) functions.
Diffstat (limited to 'gdata/gdata-upload-stream.c')
-rw-r--r-- | gdata/gdata-upload-stream.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdata/gdata-upload-stream.c b/gdata/gdata-upload-stream.c index 23dee7cd..b9b30860 100644 --- a/gdata/gdata-upload-stream.c +++ b/gdata/gdata-upload-stream.c @@ -580,6 +580,7 @@ gdata_upload_stream_new (GDataService *service, const gchar *method, const gchar SoupMessage *message; g_return_val_if_fail (GDATA_IS_SERVICE (service), NULL); + g_return_val_if_fail (method != NULL, NULL); g_return_val_if_fail (upload_uri != NULL, NULL); g_return_val_if_fail (entry == NULL || GDATA_IS_ENTRY (entry), NULL); g_return_val_if_fail (slug != NULL, NULL); |