[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/libamf element.cpp
From: |
Rob Savoye |
Subject: |
[Gnash-commit] gnash/libamf element.cpp |
Date: |
Sat, 05 Apr 2008 16:51:05 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Rob Savoye <rsavoye> 08/04/05 16:51:05
Modified files:
libamf : element.cpp
Log message:
Don't define a variable with the same name as a private data!!!
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/libamf/element.cpp?cvsroot=gnash&r1=1.13&r2=1.14
Patches:
Index: element.cpp
===================================================================
RCS file: /sources/gnash/gnash/libamf/element.cpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- element.cpp 1 Apr 2008 22:20:41 -0000 1.13
+++ element.cpp 5 Apr 2008 16:51:04 -0000 1.14
@@ -649,7 +649,7 @@
Element::setName(Network::byte_t *name, size_t x)
{
GNASH_REPORT_FUNCTION;
- char *_name = new char[x+1];
+ _name = new char[x+1];
std::copy(name, name+x, _name);
*(_name + x) = 0;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash/libamf element.cpp,
Rob Savoye <=