clutter_path_parse_description (const gchar *p,
GSList **ret)
{
- GSList *nodes = NULL;
ClutterPathNodeFull *node;
+ GSList *nodes = NULL;
+
+ if (p == NULL || *p == '\0')
+ return FALSE;
while (TRUE)
{
GSList *nodes;
g_return_val_if_fail (CLUTTER_IS_PATH (path), FALSE);
+ g_return_val_if_fail (str != NULL, FALSE);
if (clutter_path_parse_description (str, &nodes))
{
* Since: 1.0
*/
gboolean
-clutter_path_set_description (ClutterPath *path, const gchar *str)
+clutter_path_set_description (ClutterPath *path,
+ const gchar *str)
{
GSList *nodes;
g_return_val_if_fail (CLUTTER_IS_PATH (path), FALSE);
+ g_return_val_if_fail (str != NULL, FALSE);
if (clutter_path_parse_description (str, &nodes))
{