summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
15a0bd1)
Use correct type for returned function call, otherwise it can seemingly corrupt the copyrights list leading to undefined behaviour.
g_return_if_fail ( vp != NULL );
if ( copyright )
{
g_return_if_fail ( vp != NULL );
if ( copyright )
{
- gchar *found = (gchar*)g_slist_find_custom ( vp->copyrights, copyright, (GCompareFunc)strcmp );
+ GSList *found = g_slist_find_custom ( vp->copyrights, copyright, (GCompareFunc)strcmp );
if ( found == NULL )
{
gchar *duple = g_strdup ( copyright );
if ( found == NULL )
{
gchar *duple = g_strdup ( copyright );