summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-11-24 01:03:23 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:53:25 -0500
commit90a18110e9c014ff33977be4656886b093c7e022 (patch)
tree25d41c526fa7235abc96c50fc11afba12dff0b81 /source3/passdb
parentb321a8a9ad5d2b8e276c97a4a057c5fbef8b5ff7 (diff)
downloadsamba-90a18110e9c014ff33977be4656886b093c7e022.tar.gz
samba-90a18110e9c014ff33977be4656886b093c7e022.tar.bz2
samba-90a18110e9c014ff33977be4656886b093c7e022.zip
r3931: Fix all "may be used uninitialized" and "shadow" warnings.
Jeremy. (This used to be commit 8e979772a640bb4f00f4d72b6a9c837b8ef14333)
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/pdb_sql.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/passdb/pdb_sql.c b/source3/passdb/pdb_sql.c
index ffb8313a97..37e408a387 100644
--- a/source3/passdb/pdb_sql.c
+++ b/source3/passdb/pdb_sql.c
@@ -201,6 +201,9 @@ char *sql_account_query_select(const char *data, BOOL update, enum sql_search_fi
field_string = config_value_read(data, "username column",
CONFIG_USERNAME_DEFAULT);
break;
+ default:
+ field_string = "unknown";
+ break;
}
asprintf(&query,