]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
lib-string_helpersc-change-semantics-of-string_escape_mem-fix-fix
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 7 Apr 2015 23:44:56 +0000 (09:44 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 7 Apr 2015 23:44:56 +0000 (09:44 +1000)
- add missed curly braces (grr... I have them in initial comment)

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
net/sunrpc/cache.c

index c6e213f31747b3cbdc857832178baa6d4af82fce..2928afffbb81ffdfea820fd1c2b87c3ae8b02a73 100644 (file)
@@ -1073,10 +1073,10 @@ void qword_add(char **bpp, int *lp, char *str)
        if (len < 0) return;
 
        ret = string_escape_str(str, bp, len, ESCAPE_OCTAL, "\\ \n\t");
-       if (ret >= len)
+       if (ret >= len) {
                bp += len;
                len = -1;
-       else {
+       else {
                bp += ret;
                len -= ret;
                *bp++ = ' ';