Skip to content

Commit

Permalink
histogram_read(): use memset() to initialize histogram data instead o…
Browse files Browse the repository at this point in the history
…f for() loop.
  • Loading branch information
Laurent Monin committed Apr 21, 2008
1 parent a7ae368 commit c397f66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/histogram.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ gulong histogram_read(Histogram *histogram, GdkPixbuf *imgpixbuf)
s_pix = gdk_pixbuf_get_pixels(imgpixbuf);
has_alpha = gdk_pixbuf_get_has_alpha(imgpixbuf);

for (i = 0; i < HISTOGRAM_SIZE*4; i++) histogram->histmap[i] = 0;
memset(histogram->histmap, 0, sizeof(histogram->histmap));

for (i = 0; i < h; i++)
{
Expand Down

0 comments on commit c397f66

Please sign in to comment.