diff options
-rw-r--r-- | xclipboard.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xclipboard.c b/xclipboard.c index 50d8741..d331c52 100644 --- a/xclipboard.c +++ b/xclipboard.c @@ -377,11 +377,13 @@ WMProtocols(Widget w, XEvent *ev, String *params, Cardinal *n) } } +static char empty_string[] = ""; + /* ARGUSED */ static void NewCurrentClip(Widget w, XEvent *ev, String *parms, Cardinal *np) { - NewCurrentClipContents ("", 0); + NewCurrentClipContents (empty_string, 0); } static void @@ -417,7 +419,7 @@ EraseTextWidget(void) { XawTextBlock block; - block.ptr = ""; + block.ptr = empty_string; block.length = 0; block.firstPos = 0; block.format = FMT8BIT; |