Cleanup of fprintf's

This commit is contained in:
Mark Riddoch
2013-07-23 13:17:32 +02:00
parent 016e759b2b
commit 6ed63b12d4
7 changed files with 42 additions and 22 deletions

View File

@ -142,6 +142,7 @@ char fname[1024], *home, *cpasswd;
sprintf(fname, "/usr/local/skysql/MaxScale/etc/passwd");
if (users == NULL)
{
skygw_log_write(NULL, LOGFILE_MESSAGE, "Create initial password file.\n");
if ((users = users_alloc()) == NULL)
return ADMIN_ERR_NOMEM;
if ((fp = fopen(fname, "w")) == NULL)