qt-interest@trolltech.com
[Top] [All Lists]

problem with split()

Subject: problem with split()
From: "Pepe Doval"
Date: Sat, 10 Dec 2005 13:47:44 +0100 CET
Hi,
I get a segmentation fault when running this code:

QString _path = QString(path);
QStringList _path_list = _path.split(":", QString::SkipEmptyParts);

where path is a (char *) declared as:

char *path = getenv("PATH");

so that it contains the $PATH of my Linux session.

Any idea?

Thanks.
Pepe.

--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with 
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/

<Prev in Thread] Current Thread [Next in Thread>