diff options
-rw-r--r-- | src/brandbot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/brandbot.c b/src/brandbot.c index c9b21ecd..7418a33f 100644 --- a/src/brandbot.c +++ b/src/brandbot.c @@ -27,7 +27,7 @@ int main(int argc, char **argv) { if (!osrelease) return 0; oldname = svGetValue(osrelease, "PRETTY_NAME"); - if (!strcmp(oldname, newname)) + if (oldname && !strcmp(oldname, newname)) return 0; svSetValue(osrelease, "PRETTY_NAME", newname); rc += svWriteFile(osrelease, 0644); |