Skip to content

Commit

Permalink
core: avoid the use of pop_back on empty string
Browse files Browse the repository at this point in the history
fixes #222
  • Loading branch information
vaxerski committed Dec 15, 2024
1 parent b17d32f commit 4d5b68b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Hyprpaper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,8 @@ void CHyprpaper::renderWallpaperForMonitor(SMonitor* pMonitor) {

if (*PRENDERSPLASH && getenv("HYPRLAND_INSTANCE_SIGNATURE")) {
auto SPLASH = execAndGet("hyprctl splash");
SPLASH.pop_back();
if (!SPLASH.empty())
SPLASH.pop_back();

Debug::log(LOG, "Rendering splash: {}", SPLASH);

Expand Down

0 comments on commit 4d5b68b

Please sign in to comment.