This website works better with JavaScript.
Home
Help
Sign In
cacalabs
/
libcaca
mirror of
https://github.com/cacalabs/libcaca.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
7
Wiki
Activity
Browse Source
* Initializate variable "len" in caca_export_string
tags/v0.99.beta17
Nicolas Vion
nico
16 years ago
parent
9feb5f1d48
commit
4d358a3ee7
1 changed files
with
1 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
caca-php/php_caca.c
+ 1
- 1
caca-php/php_caca.c
View File
@@ -1638,7 +1638,7 @@ PHP_FUNCTION(caca_export_string) {
ZEND_FETCH_RESOURCE(canvas, caca_canvas_t*, &_zval, -1, PHP_CACA_CANVAS_RES_NAME, le_caca_canvas);
ZEND_FETCH_RESOURCE(canvas, caca_canvas_t*, &_zval, -1, PHP_CACA_CANVAS_RES_NAME, le_caca_canvas);
void *buffer, *copy;
void *buffer, *copy;
size_t len;
size_t len
= 0
;
buffer = caca_export_memory(canvas, type, &len);
buffer = caca_export_memory(canvas, type, &len);
copy = emalloc(len);
copy = emalloc(len);
if (!buffer || !copy) {
if (!buffer || !copy) {
Write
Preview
Loading…
Cancel
Save