diff options
author | Darryl L. Miles <darryl.miles@darrylmiles.org> | 2011-04-20 10:39:09 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2011-04-20 10:39:24 (GMT) |
commit | 18c9fce91c8f8f25c613e1be9030c36ce5c7d671 (patch) | |
tree | e1e6c86cdbe9e595c8e4aab297afbe214e401dc3 | |
parent | e93ef151eb7bc42e8139e2dc2d4ae3b7853b1c2d (diff) | |
download | Qt-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
-rwxr-xr-x | bin/syncqt | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |