@@ -5,7 +5,7 @@
|
||||
#include "alloc-util.h"
|
||||
#include "bus-label.h"
|
||||
#include "hexdecoct.h"
|
||||
#include "macro.h"
|
||||
#include "string-util.h"
|
||||
|
||||
char* bus_label_escape(const char *s) {
|
||||
char *r, *t;
|
||||
@@ -48,6 +48,9 @@ char* bus_label_unescape_n(const char *f, size_t l) {
|
||||
|
||||
assert_return(f, NULL);
|
||||
|
||||
if (l == SIZE_MAX)
|
||||
l = strlen(f);
|
||||
|
||||
/* Special case for the empty string */
|
||||
if (l == 1 && *f == '_')
|
||||
return strdup("");
|
||||
|
||||
Reference in New Issue
Block a user