summaryrefslogtreecommitdiff
path: root/udev/udev_utils_string.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-09-06 15:45:31 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-09-06 15:45:31 +0200
commit7d563a17f3967890331daf08d43f2f005418139b (patch)
tree88b0c35d258a5b51fcadc1c0fc96ff80dfcaeacf /udev/udev_utils_string.c
parentcf8ec631a23eae532541bfeeccce20f0d978404d (diff)
use libudev code, unify logging, pass udev context around everywhere
Diffstat (limited to 'udev/udev_utils_string.c')
-rw-r--r--udev/udev_utils_string.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/udev/udev_utils_string.c b/udev/udev_utils_string.c
index 78bfca800c..3bfe22c815 100644
--- a/udev/udev_utils_string.c
+++ b/udev/udev_utils_string.c
@@ -46,6 +46,8 @@ void remove_trailing_chars(char *path, char c)
{
size_t len;
+ if (path == NULL)
+ return;
len = strlen(path);
while (len > 0 && path[len-1] == c)
path[--len] = '\0';