diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-01-04 08:36:17 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-01-04 09:40:05 +0300 |
commit | f43e8cceb3dfafc03c278be741479ce6825a6a53 (patch) | |
tree | 913a58961433cf86433d39716c8644def63063d7 /source/blender/blenkernel/intern/appdir.c | |
parent | f17184bfeb2bfc1d6fe44308e4008454d5a19df0 (diff) |
Fix early exit check in BKE_appdir_app_template_has_userpref
Logical error in 84f21c170dda9e503de440c20bc2753002987901
This check was a no-op, replace this with a check for an empty string.
Diffstat (limited to 'source/blender/blenkernel/intern/appdir.c')
-rw-r--r-- | source/blender/blenkernel/intern/appdir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/appdir.c b/source/blender/blenkernel/intern/appdir.c index 874b24ecfe8..ff799d9a495 100644 --- a/source/blender/blenkernel/intern/appdir.c +++ b/source/blender/blenkernel/intern/appdir.c @@ -1014,7 +1014,7 @@ bool BKE_appdir_app_template_has_userpref(const char *app_template) { /* Test if app template provides a `userpref.blend`. * If not, we will share user preferences with the rest of Blender. */ - if (!app_template && app_template[0]) { + if (app_template[0] == '\0') { return false; } |