[PATCH] Re: What not to be doing - syscall()
Thiago Macieira
thiago.macieira at kdemail.net
Tue Dec 23 20:13:08 GMT 2003
Frans Englich wrote:
>+ const char *user = KUser().loginName().latin1();
I have a problem with that, in your last patch. The QString object the from
which you're getting the Latin1 is a temporary object and will be destroyed
shortly thereafter, so the variable will point to a deallocated pointer. Use
a QCString there for user or keep the QString around.
--
Thiago Macieira - Registered Linux user #65028
thiagom (AT) mail (dot) com
ICQ UIN: 1967141 PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20031223/02bec005/attachment.sig>
More information about the kde-core-devel
mailing list