SHA256
1
0
forked from pool/hugin
hugin/hugin-string-compare.patch

14 lines
457 B
Diff

autooptimiser.cpp: In function 'int main(int, char**)':
autooptimiser.cpp:136: warning: comparison with string literal results in unspecified behaviour
--- src/tools/autooptimiser.cpp
+++ src/tools/autooptimiser.cpp
@@ -133,7 +133,7 @@
Panorama pano;
PanoramaMemento newPano;
- if (scriptFile == "-") {
+ if (strcmp(scriptFile,"-") == 0) {
if (newPano.loadPTScript(cin)) {
pano.setMemento(newPano);
} else {