diff options
author | portix <portix@gmx.net> | 2012-11-22 17:38:20 +0100 |
---|---|---|
committer | portix <portix@gmx.net> | 2012-11-22 17:38:20 +0100 |
commit | 85659e8488445ce7a9fd2c51c00cee1f2e848ce3 (patch) | |
tree | b9f64abeb89601ffea0bddb9786bf3ff3f255388 /src | |
parent | 58996d0b8304580ebdfec1a0c48525335dd185a2 (diff) | |
download | dwb-85659e8488445ce7a9fd2c51c00cee1f2e848ce3.zip |
Fixing segfault in dwb_paste_into_entry
Diffstat (limited to 'src')
-rw-r--r-- | src/dwb.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -818,6 +818,9 @@ void dwb_paste_into_entry(GtkClipboard *clip, const char *text) { char *buffer, *back; + if (text == NULL || *text == '\0') + return; + buffer = back = g_strdup(text); while (*buffer) { if (*buffer == '\n' || *buffer == '\r') |