diff options
author | Darryl L. Miles <darryl.miles@darrylmiles.org> | 2011-04-20 12:39:09 +0200 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2011-04-20 12:39:24 +0200 |
commit | 18c9fce91c8f8f25c613e1be9030c36ce5c7d671 (patch) | |
tree | e1e6c86cdbe9e595c8e4aab297afbe214e401dc3 /bin/syncqt | |
parent | e93ef151eb7bc42e8139e2dc2d4ae3b7853b1c2d (diff) | |
download | qt4-tools-18c9fce91c8f8f25c613e1be9030c36ce5c7d671.tar.gz |
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/syncqt')
-rwxr-xr-x | bin/syncqt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/syncqt b/bin/syncqt index b8f1ee7e99..7e1f581c69 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; |