File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -378,6 +378,7 @@ static int mkpath(struct flb_output_instance *ins, const char *dir)
378
378
char parent_path [MAX_PATH ];
379
379
DWORD err ;
380
380
char * p ;
381
+ char * sep ;
381
382
#endif
382
383
int ret ;
383
384
@@ -422,8 +423,8 @@ static int mkpath(struct flb_output_instance *ins, const char *dir)
422
423
}
423
424
424
425
flb_plg_debug (ins , "starting to create directory %s" , parent_path );
425
- p = strstr (parent_path , FLB_PATH_SEPARATOR );
426
- if (p != NULL && PathRemoveFileSpecA (parent_path )) {
426
+ sep = strstr (parent_path , FLB_PATH_SEPARATOR );
427
+ if (sep != NULL && PathRemoveFileSpecA (parent_path )) {
427
428
flb_plg_debug (ins , "creating directory (recursive) %s" , parent_path );
428
429
ret = mkpath (ins , parent_path );
429
430
if (ret != 0 ) {
You can’t perform that action at this time.
0 commit comments