Mercurial > pidgin
view libpurple/plugins/mono/loader/status-glue.c @ 21115:b95550f14549
initialize a variable to NULL, and not crash when you move a buddy to a new
group. Doesn't do the right thing yet, but at least doesn't crash
author | Ka-Hing Cheung <khc@hxbc.us> |
---|---|
date | Sat, 03 Nov 2007 05:37:59 +0000 |
parents | 32c366eeeb99 |
children | a8cc50c2279f |
line wrap: on
line source
#include "status.h" #include "mono-helper.h" #include "mono-glue.h" MonoObject* purple_status_build_status_object(void* data) { MonoObject *obj = NULL; PurpleStatus *status = (PurpleStatus*)data; obj = ml_create_api_object("Status"); g_return_val_if_fail(obj != NULL, NULL); ml_set_prop_string(obj, "Id", (char*)purple_status_get_id(status)); return obj; }