summaryrefslogtreecommitdiff
path: root/magick/list.c
diff options
context:
space:
mode:
Diffstat (limited to 'magick/list.c')
-rw-r--r--magick/list.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/magick/list.c b/magick/list.c
index 1ce2b64..481b7a4 100644
--- a/magick/list.c
+++ b/magick/list.c
@@ -51,7 +51,9 @@
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
-% AppendImageToList() appends an image to the end of the list.
+% AppendImageToList() appends an image to the end of the list. Please
+% note that this API allows the list pointer to be updated and in fact
+% it now updates the list pointer to be the image which was just added.
%
% The format of the AppendImageToList method is:
%
@@ -83,6 +85,7 @@ MagickExport void AppendImageToList(Image **images,Image *image)
for (p=(*images); p->next != (Image *) NULL; p=p->next);
p->next=image;
image->previous=p;
+ *images=image;
}
/*