Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 87955
b: refs/heads/master
c: a9edadb
h: refs/heads/master
i:
  87953: 0dc4f0a
  87951: 8686137
v: v3
  • Loading branch information
Mark Lord authored and Linus Torvalds committed Mar 30, 2008
1 parent 856fc5f commit ffcd412
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eb08b6b973cb91311431c6eea3cc232b97152a84
refs/heads/master: a9edadbf790d72adf6ebed476cb5caf7743e7e4a
2 changes: 1 addition & 1 deletion trunk/lib/kobject_uevent.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ int kobject_action_type(const char *buf, size_t count,
enum kobject_action action;
int ret = -EINVAL;

if (count && buf[count-1] == '\n')
if (count && (buf[count-1] == '\n' || buf[count-1] == '\0'))
count--;

if (!count)
Expand Down

0 comments on commit ffcd412

Please sign in to comment.