diff options
author | Mark Johnston <markj@FreeBSD.org> | 2025-07-07 13:51:41 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2025-07-07 13:51:41 +0000 |
commit | 97452b097a4a35df8ce8cbd44786fb7d95db2a92 (patch) | |
tree | 6c91140dc7c02cfd3379eed4ba9f6468c93bcaa3 | |
parent | 13a21c0c0e3db6e2c1a317031c7d1bf4651bec3d (diff) |
-rw-r--r-- | share/examples/inotify/inotify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/examples/inotify/inotify.c b/share/examples/inotify/inotify.c index b8e300bc992c..ea63ccd1f337 100644 --- a/share/examples/inotify/inotify.c +++ b/share/examples/inotify/inotify.c @@ -154,7 +154,7 @@ main(int argc, char **argv) ev = ev2str(iev1->mask); xo_open_instance("event"); xo_emit("{:wd/%3d} {:event/%16s} {:name/%s}\n", - iev1->wd, ev, iev1->name); + iev1->wd, ev, iev1->len > 0 ? iev1->name : ""); xo_close_instance("event"); n -= sizeof(*iev1) + iev1->len; |