summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bdb7b83)
raw | patch | inline | side by side (parent: bdb7b83)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Sat, 24 Feb 2007 17:55:20 +0000 (17:55 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Sat, 24 Feb 2007 17:55:20 +0000 (17:55 +0000) |
src/dialogs/clonetiler.cpp | patch | blob | history |
index e063c80544bebbc744445c76df8cba96b8ce5a67..130480608413469142ab004966ed618dfd29b3f7 100644 (file)
/* Set up pixblock */
guchar *px = g_new(guchar, 4 * width * height);
- memset(px, 0x00, 4 * width * height);
if (px == NULL) {
return 0; // buffer is too big or too small, cannot pick, so return 0
}
+ memset(px, 0x00, 4 * width * height);
+
/* Render */
NRPixBlock pb;
nr_pixblock_setup_extern( &pb, NR_PIXBLOCK_MODE_R8G8B8A8N,