projects
/
browser-dbus-bridge.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
630fc44
)
[jscore] Allow nulls to be passed to is_valid_path()
author
Kalle Vahlman
<kalle.vahlman@movial.com>
Tue, 28 Apr 2009 10:04:53 +0000
(13:04 +0300)
committer
Kalle Vahlman
<kalle.vahlman@movial.com>
Tue, 28 Apr 2009 10:04:53 +0000
(13:04 +0300)
jscorebus/jscorebus.c
patch
|
blob
|
history
diff --git
a/jscorebus/jscorebus.c
b/jscorebus/jscorebus.c
index 86dde1853ec223462a9f0ef594311408f33dc221..ca2dd471cbe30f9600a0a3d8009c27db3716a9de 100644
(file)
--- a/
jscorebus/jscorebus.c
+++ b/
jscorebus/jscorebus.c
@@
-225,14
+225,14
@@
gboolean is_valid_path (const char *path)
{
const char *this = path;
const char *prev = this;
-
- if (strlen(path) == 0)
+
+ if (
path == NULL ||
strlen(path) == 0)
return FALSE;
-
+
/* MUST begin with zero */
if (*this++ != '/')
return FALSE;
-
+
/* The path is guranteed to be null-terminated */
while (*this != '\0')
{