lib/popt: Small whitespace fix for readability.
authorJose A. Rivera <jarrpa@redhat.com>
Mon, 3 Mar 2014 06:19:55 +0000 (11:49 +0530)
committerJeremy Allison <jra@samba.org>
Thu, 13 Mar 2014 20:45:12 +0000 (21:45 +0100)
Change-Id: Ib920f7e84c0247a8f09aa4c79c65b26afb78f234
Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ira Cooper <ira@samba.org>
popt/popthelp.c

index e965ff6168eb4bc6dbe8cfa5f84b6af7aa3daea3..0ed355a18d73b56f0c106384de9165f112153007 100644 (file)
@@ -240,22 +240,23 @@ static void singleOptionHelp(FILE * fp, int maxLeftCol,
        /* Choose type of output */
        /*@-branchstate@*/
        if (opt->argInfo & POPT_ARGFLAG_SHOW_DEFAULT) {
-           defs = singleOptionDefaultValue(lineLength, opt, translation_domain);
-           if (defs) {
-               char * t = (char *)malloc((help ? strlen(help) : 0) +
+               defs = singleOptionDefaultValue(lineLength, opt, translation_domain);
+               if (defs) {
+                       char * t = (char *)malloc((help ? strlen(help) : 0) +
                                strlen(defs) + sizeof(" "));
-               if (t) {
-                   char * te = t;
-                   *te = '\0';
-                   if (help) {
-                       strcpy(te, help);       te += strlen(te);
-                   }
-                   *te++ = ' ';
-                   strcpy(te, defs);
-                   defs = (char *)_free(defs);
+                       if (t) {
+                               char * te = t;
+                               *te = '\0';
+                               if (help) {
+                                       strcpy(te, help);
+                                       te += strlen(te);
+                               }
+                               *te++ = ' ';
+                               strcpy(te, defs);
+                               defs = (char *)_free(defs);
+                       }
+                       defs = t;
                }
-               defs = t;
-           }
        }
        /*@=branchstate@*/