[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog libamf/sol.cpp
From: |
Benjamin Wolsey |
Subject: |
[Gnash-commit] gnash ChangeLog libamf/sol.cpp |
Date: |
Mon, 31 Mar 2008 04:31:02 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Benjamin Wolsey <bwy> 08/03/31 04:31:02
Modified files:
. : ChangeLog
libamf : sol.cpp
Log message:
* libamf/sol.cpp: outsize isn't expected to be more than 0 at
this point.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.6106&r2=1.6107
http://cvs.savannah.gnu.org/viewcvs/gnash/libamf/sol.cpp?cvsroot=gnash&r1=1.27&r2=1.28
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.6106
retrieving revision 1.6107
diff -u -b -r1.6106 -r1.6107
--- ChangeLog 31 Mar 2008 00:36:33 -0000 1.6106
+++ ChangeLog 31 Mar 2008 04:31:02 -0000 1.6107
@@ -1,3 +1,8 @@
+2008-03-31 Benjamin Wolsey <address@hidden>
+
+ * libamf/sol.cpp: outsize isn't expected to be more than 0 at
+ this point.
+
2008-03-30 Dossy Shiobara <address@hidden>
* libnet/rtmp_server.cpp: Use portable get_thread_id()
Index: libamf/sol.cpp
===================================================================
RCS file: /sources/gnash/gnash/libamf/sol.cpp,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -b -r1.27 -r1.28
--- libamf/sol.cpp 30 Mar 2008 23:02:56 -0000 1.27
+++ libamf/sol.cpp 31 Mar 2008 04:31:02 -0000 1.28
@@ -235,13 +235,12 @@
for (ita = _amfobjs.begin(); ita != _amfobjs.end(); ita++) {
amf::Element *el = (*(ita));
- size_t outsize = 0;
Network::byte_t *var = amf_obj.encodeVariable(el);
-// Network::byte_t *var = amf_obj.encodeVariable(el, outsize);
+ // Network::byte_t *var = amf_obj.encodeVariable(el, outsize);
if (!var) {
continue;
}
- assert(outsize);
+ size_t outsize = 0;
switch (el->getType()) {
case Element::BOOLEAN:
outsize = el->getName().size() + 5;