Patch yaml-warnings.patch for yaml Bug #61477
Patch version 2012-03-22 17:56 UTC
Return to Bug #61477 |
Download this patch
Patch Revisions:
Developer: nolte@adobe.com
Index: emit.c
===================================================================
--- emit.c (revision 324468)
+++ emit.c (working copy)
@@ -746,7 +746,7 @@
}
/* emit surrogate object and tag */
- return y_write_zval(state, (*zdata), Z_STRVAL_PP(ztag) TSRMLS_CC);
+ return y_write_zval(state, (*zdata), (yaml_char_t*) Z_STRVAL_PP(ztag) TSRMLS_CC);
}
/* }}} */
Index: yaml.c
===================================================================
--- yaml.c (revision 324468)
+++ yaml.c (working copy)
@@ -416,7 +416,7 @@
zval *yaml = { 0 };
long ndocs = 0;
- memset(&state, 0, sizeof(&state));
+ memset(&state, 0, sizeof(state));
state.have_event = 0;
state.aliases = NULL;
state.callbacks = NULL;
@@ -506,7 +506,7 @@
zval *yaml = { 0 };
long ndocs = 0;
- memset(&state, 0, sizeof(&state));
+ memset(&state, 0, sizeof(state));
state.have_event = 0;
state.aliases = NULL;
state.callbacks = NULL;
@@ -609,7 +609,7 @@
zval *yaml = { 0 };
long ndocs = 0;
- memset(&state, 0, sizeof(&state));
+ memset(&state, 0, sizeof(state));
state.have_event = 0;
state.aliases = NULL;
state.callbacks = NULL;
|