[PATCH] GCC 4.4 compilation & start fix

Bug #337357 reported by Lubomir Rintel on 2009-03-03
Affects Status Importance Assigned to Milestone

Bug Description

One more typing fix for GCC 4.4, and fix a NULL dereference on startup.

I don't really know much about this computers and internets thing, so I don't even marginally understand what happens in the code the second hunk fixes:

- object->klass = c;
+ object->klass = c;

What happens when compiled with GCC 4.4 is that the call to cpp_ctor() zeroes the klass in object. (This is the implementation of the cpp_ctor:)

        template <typename T>
        static void invoke_ctor(NRObject *object) {
                new (object) T();

Lubomir Rintel (lkundrak) wrote :
nightrow (jb-benoit) on 2009-03-17
Changed in inkscape:
importance: Undecided → Low
status: New → Triaged
ScislaC (scislac) wrote :

Committed in svn rev 21295. Thank you for your contribution!

Changed in inkscape:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers