git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d69b8b1
)
Fix Coverity ID 537
author
Volker Lendecke
<vl@samba.org>
Fri, 21 Mar 2008 10:42:42 +0000
(11:42 +0100)
committer
Volker Lendecke
<vl@samba.org>
Fri, 21 Mar 2008 10:42:42 +0000
(11:42 +0100)
source/lib/substitute.c
patch
|
blob
|
history
diff --git
a/source/lib/substitute.c
b/source/lib/substitute.c
index 85c06e93741bc9dac85cf859c6d149cc37c8b9b5..6ecc3fc63596071ad3baf6dda80dd742bfc81fbe 100644
(file)
--- a/
source/lib/substitute.c
+++ b/
source/lib/substitute.c
@@
-483,6
+483,9
@@
static const char *automount_server(const char *user_name)
return "";
}
srv = talloc_strdup(ctx, automount_value);
+ if (!srv) {
+ return "";
+ }
p = strchr_m(srv, ':');
if (!p) {
return "";
@@
-494,9
+497,6
@@
static const char *automount_server(const char *user_name)
}
#endif
- if (!server_name) {
- server_name = "";
- }
DEBUG(4,("Home server: %s\n", server_name));
return server_name;
}