⚠️ Forum Maintenance: Feb 6th, 8am - 14pm (UTC+2)

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