Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QSqlDatabase Valgrind - Uninitialised value



  • Hi,

    Does anyone have any ideas why Valgrind would report "Conditional jump or move depends on uninitialised value(s)" for just the following:

    @
    QSqlDatabase db = QSqlDatabase::addDatabase("QPSQL");
    db.setHostName("hostname");
    db.setDatabaseName("database_name");
    db.setUserName("username");
    db.setPassword("password");
    bool ok = db.open();
    @

    I'm using Qt5.3.0 on Linux Mint 17 x64. The above would produce the error for the line with db.open().

    Thanks.


Log in to reply