Updating branch refs/heads/master
         to c15049d734e5884762e824f7ef6ce8a6e64ad13a (commit)
       from 400b78dcb11971fc5f3c5989328c5dfa272abf4a (commit)

commit c15049d734e5884762e824f7ef6ce8a6e64ad13a
Author: Connor Behan <[email protected]>
Date:   Thu Aug 16 15:37:10 2012 -0700

    Added empty string safeguards for when the plugin is unconfigured

 generic-slider.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/generic-slider.c b/generic-slider.c
index c9d7f11..4191fcd 100644
--- a/generic-slider.c
+++ b/generic-slider.c
@@ -33,7 +33,9 @@ char *parse_command(char *primitive, int value, int delta) {
        int numds = 0;
        int numvs = 0;
        int i;
-               
+       
+       if (!strcmp(primitive, "")) return "";
+       
        for (i = 0; i < strlen(primitive); i++) {
                if (primitive[i-1] == '%') {
                        if (primitive[i] == 'd') {
@@ -120,6 +122,8 @@ static void execute_command(char *command) {
        int num_args = 2;
        int i, j, k;
        
+       if (!strcmp(command, "")) return;
+       
        /* Allocates the arglist appropriately */
        
        j = 0;
_______________________________________________
Xfce4-commits mailing list
[email protected]
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to