summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorDarryl L. Miles <darryl.miles@darrylmiles.org>2011-04-20 10:39:09 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2011-04-20 10:39:24 (GMT)
commit18c9fce91c8f8f25c613e1be9030c36ce5c7d671 (patch)
treee1e6c86cdbe9e595c8e4aab297afbe214e401dc3 /bin
parente93ef151eb7bc42e8139e2dc2d4ae3b7853b1c2d (diff)
downloadQt-18c9fce91c8f8f25c613e1be9030c36ce5c7d671.zip
Qt-18c9fce91c8f8f25c613e1be9030c36ce5c7d671.tar.gz
Qt-18c9fce91c8f8f25c613e1be9030c36ce5c7d671.tar.bz2
fix unititialized value use when timestamping qconfig.h
we may be creating the forwarding header for a not yet existing file, so the timestamp may be undefined. Task-number: QTBUG-15330 Merge-request: 1174 Reviewed-by: ossi
Diffstat (limited to 'bin')
-rwxr-xr-xbin/syncqt4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/syncqt b/bin/syncqt
index b8f1ee7..7e1f581 100755
--- a/bin/syncqt
+++ b/bin/syncqt
@@ -334,7 +334,9 @@ sub syncHeader {
open HEADER, ">$header" || die "Could not open $header for writing!\n";
print HEADER "#include \"$iheader_out\"\n";
close HEADER;
- utime(time, $ts, $header) or die "$iheader, $header";
+ if(defined($ts)) {
+ utime(time, $ts, $header) or die "$iheader, $header";
+ }
return 1;
}
return 0;