view plugins/mono/loader/status-glue.c @ 13492:59ea9ddd408b

[gaim-migrate @ 15868] Nathan fixed part of CID 24 by adding a missing return. This is a similar error in the next function in the file, also apparently tracked in CID 24. So, here's the same fix. Resolves CID 24 committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Mon, 13 Mar 2006 17:54:14 +0000
parents 8edb08af68c7
children
line wrap: on
line source

#include "status.h"
#include "mono-helper.h"
#include "mono-glue.h"

MonoObject* gaim_status_build_status_object(void* data)
{
	MonoObject *obj = NULL;
	GaimStatus *status = (GaimStatus*)data;
	
	obj = ml_create_api_object("Status");
	g_return_val_if_fail(obj != NULL, NULL);
		
	ml_set_prop_string(obj, "Id", (char*)gaim_status_get_id(status));
	
	return obj;
}