summaryrefslogtreecommitdiffstats
path: root/sc-ap/utility.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sc-ap/utility.cpp')
-rwxr-xr-xsc-ap/utility.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/sc-ap/utility.cpp b/sc-ap/utility.cpp
index dd78a4c..2735083 100755
--- a/sc-ap/utility.cpp
+++ b/sc-ap/utility.cpp
@@ -50,7 +50,9 @@ mystring searchAndReplace( const mystring& inputString, const mystring& registry
while (reg.exists( registryKey + itos( i))) {
stringList searchReplace = reg.getValues( registryKey + itos( i));
if (searchReplace.size() != 2) {
- fprintf( fp, "registry key prependpath %d invalid\n", i);
+ if (fp) {
+ fprintf( fp, "registry key prependpath %d invalid\n", i);
+ }
continue;
}
mystring searchString = searchReplace.front();