* Add an else to the if (p) block to catch the cases where we are
authorhartwick <hartwick>
Thu, 28 Dec 2000 01:55:04 +0000 (01:55 +0000)
committerhartwick <hartwick>
Thu, 28 Dec 2000 01:55:04 +0000 (01:55 +0000)
  left with a NULL pointer.

src/main/util.c

index 2882f45..36498f2 100644 (file)
@@ -164,6 +164,8 @@ int rad_mkdir(char *directory, int mode)
                 *      the system to make the directory.
                 */
                *p = '/';
+       } else {
+               return 0;
        }
 
        /*