1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r4802: Don't try to update a column with the name "NULL"

(This used to be commit ed38e60264)
This commit is contained in:
Jelmer Vernooij 2005-01-17 14:25:58 +00:00 committed by Gerald (Jerry) Carter
parent 69e24e59a4
commit 5d47f8e5e5

View File

@ -141,8 +141,14 @@ static const char * config_value_write(const char *location, const char *name, c
swrite = strrchr(v, ':');
/* Default to the same field as read field */
if (!swrite)
if (!swrite) {
/* Updating NULL does not make much sense */
if (!strcmp(v, "NULL"))
return NULL;
return v;
}
swrite++;