Fikset en seg. fault, feilen lå i is_password_set-rutinen

This commit is contained in:
Thomas Langas 2002-03-07 20:04:24 +00:00
parent 4abcb01c97
commit f52a24bc2e

View File

@ -1,5 +1,5 @@
/*
* @(#) $Header: /tmp/cvs/mysql-admutils/mysql-useradm.c,v 1.3 2002-03-06 17:05:05 tlan Exp $
* @(#) $Header: /tmp/cvs/mysql-admutils/mysql-useradm.c,v 1.4 2002-03-07 20:04:24 tlan Exp $
*
* mysql-useradm.c
*
@ -52,7 +52,7 @@ is_password_set(MYSQL *pmysql, const char *user)
return -1;
if (rows > 1)
return dberror(NULL, "Query for password for user '%s' gave %d results!",
rows);
user, rows);
row = mysql_fetch_row(res);
return (row[0] && (strlen(row[0]) > 0));
}