diff options
Diffstat (limited to 'dive.c')
-rw-r--r-- | dive.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2495,10 +2495,10 @@ static void picture_free( struct picture *p){ free( p->filename ); free( p ); } -void dive_remove_picture(struct picture *p) +void dive_remove_picture(char *filename) { struct picture **ep = ¤t_dive->picture_list; - while (ep && !same_string((*ep)->filename, p->filename)) + while (ep && !same_string((*ep)->filename, filename)) ep = &(*ep)->next; if (ep) { struct picture *temp = (*ep)->next; |